浏览代码

登录权限问题修改

zhujindu 8 月之前
父节点
当前提交
91985026ad
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/views/home/index.vue

+ 3 - 1
src/views/home/index.vue

@@ -332,9 +332,11 @@ export default {
   created() {
     // 当前tabs,0:销售部;1:我的
     this.tabVal = localStorage.getItem('tabVal') == '0' ? '0' : '1';
-    if (this.deviceOutsidePage) this.initData();
     store.dispatch('setDeviceOutsidePage', false);
   },
+  mounted() {
+    if (this.deviceOutsidePage) this.initData();
+  },
   mounted() {
     // 上拉边界下拉出现白色空白
     let node = document.getElementsByClassName('home')[0];