浏览代码

app端切换机构,未选择具体机构就点确认的报错,改为中文

zhulu 9 月之前
父节点
当前提交
773a9447c0
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      src/components/TopBar.vue

+ 7 - 1
src/components/TopBar.vue

@@ -119,7 +119,7 @@
     created(){      
     },
     mounted(){      
-      this.getMenuList()
+      // this.getMenuList()
     },
     watch:{
       subUserList:{
@@ -175,6 +175,12 @@
       onSelect(action)
       {
         // console.log("onSelect",action,action.text);
+        if(!this.peoplesId) 
+        {
+          this.$toast('请选择一个切换机构!');
+          return;
+        }          
+
         this.clickSwitchUser(this.peoplesId);
       },
       getSubUserUnDoTaskList()