kongdeqiang
2 天以前 6ac0e6669f3a8ea18c7ac90b37405c65313a1c5f
feat: 修改登录bug
2个文件已修改
9 ■■■■ 已修改文件
src/components/page/Login.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/store/state.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/page/Login.vue
@@ -59,6 +59,7 @@
                    if (valid) {
                        var url = this.$systemconfig.basePath + '/ffzf/user/login';
                        this.$byutil.postData(this,url,this.ruleForm,res=>{
                          if (res.code == 0) {
                            let data = res.data;
                          if (data) {
                            localStorage.userId = data.id;
@@ -75,6 +76,10 @@
                            //     this.$router.push({'path': '/index'});
                            // }
                        }
                        }else {
                            this.$message.error(res.msg);
                          }
                    })
                    } else {
                        return false;
src/store/state.js
@@ -145,13 +145,13 @@
          children:[
            {
              icon: 'el-icon-user-solid',
              name: '巡检登记',
              name: '巡检记录管理',
              parentId: 4,
              indexUrl: 'inspectionRegistration'
            },
            {
              icon: 'el-icon-user-solid',
              name: '维修维护管理软件',
              name: '维修维护管理',
              parentId: 4,
              indexUrl: 'repairAndMaintenance'
            },