|
|
@@ -13,7 +13,7 @@ export default {
|
|
|
components: {},
|
|
|
data() {
|
|
|
// 这里存放数据
|
|
|
- return {};
|
|
|
+ return {}
|
|
|
},
|
|
|
// 监听属性 类似于data概念
|
|
|
computed: {},
|
|
|
@@ -22,29 +22,30 @@ export default {
|
|
|
// 方法集合
|
|
|
methods: {
|
|
|
goIndex() {
|
|
|
- this.$router.replace("/index?m=TEST");
|
|
|
- this.$nextTick(() => {
|
|
|
- setTimeout(() => {
|
|
|
- location.reload(true);
|
|
|
- }, 300);
|
|
|
- });
|
|
|
+ this.$router.replace('tab1').catch(() => { })
|
|
|
+ // this.$router.replace("/index?m=TEST");
|
|
|
+ // this.$nextTick(() => {
|
|
|
+ // setTimeout(() => {
|
|
|
+ // location.reload(true);
|
|
|
+ // }, 300);
|
|
|
+ // });
|
|
|
},
|
|
|
},
|
|
|
// 生命周期 - 创建完成(可以访问当前this实例)
|
|
|
- created() {},
|
|
|
+ created() { },
|
|
|
// 生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
- mounted() {},
|
|
|
- beforeCreate() {}, // 生命周期 - 创建之前
|
|
|
- beforeMount() {}, // 生命周期 - 挂载之前
|
|
|
- beforeUpdate() {}, // 生命周期 - 更新之前
|
|
|
- updated() {}, // 生命周期 - 更新之后
|
|
|
- beforeDestroy() {}, // 生命周期 - 销毁之前
|
|
|
- destroyed() {}, // 生命周期 - 销毁完成
|
|
|
- activated() {}, // 如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
-};
|
|
|
+ mounted() { },
|
|
|
+ beforeCreate() { }, // 生命周期 - 创建之前
|
|
|
+ beforeMount() { }, // 生命周期 - 挂载之前
|
|
|
+ beforeUpdate() { }, // 生命周期 - 更新之前
|
|
|
+ updated() { }, // 生命周期 - 更新之后
|
|
|
+ beforeDestroy() { }, // 生命周期 - 销毁之前
|
|
|
+ destroyed() { }, // 生命周期 - 销毁完成
|
|
|
+ activated() { }, // 如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
+}
|
|
|
</script>
|
|
|
<style lang='less' scoped>
|
|
|
-/deep/.all{
|
|
|
+/deep/.all {
|
|
|
display: none !important;
|
|
|
}
|
|
|
.home {
|