From 74f80e65ce4ff04ae9b65edc41d362d55453d7fa Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Fri, 29 Oct 2021 18:02:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=99=BB=E5=BD=95=E6=97=B6?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=E6=8A=A530001=E6=9C=AA=E5=BC=B9=E5=87=BA?= =?UTF-8?q?=E7=AA=97=E5=8F=A3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 2 +- src/pages/account/login/index.vue | 11 ++++++----- src/setting.js | 4 ++-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/main.js b/src/main.js index 4d783c7..719d2d7 100644 --- a/src/main.js +++ b/src/main.js @@ -39,7 +39,7 @@ Vue.prototype.auth = function(values){ // 直接拿值进行匹配,取得当前router的mate信息,传入,返回一个boolean,以此进行vif判断 // router.meta 信息匹配传进来的value,用vif去进行按钮级权限配置即可。 // $router.currentRoute.meta - console.log(router.currentRoute.meta,'当前路由的按钮权限数组') + // console.log(router.currentRoute.meta,'当前路由的按钮权限数组') return router.currentRoute.meta.btn.some(e=>e===values) } new Vue({ diff --git a/src/pages/account/login/index.vue b/src/pages/account/login/index.vue index 0625407..093c558 100644 --- a/src/pages/account/login/index.vue +++ b/src/pages/account/login/index.vue @@ -122,17 +122,18 @@ export default { if (valid) { this.loginForm.distinguish = Number(this.activeName); this.$post(this.api.logins, this.loginForm).then(res => { + if (res && res.status == 30001) { + this.phoneVisible = true; + } + this.getVerImg(); + this.loginForm.code = ""; util.local.set(Setting.tokenKey, res.data.token, Setting.tokenExpires); let redirect = this.$route.query.redirect ? decodeURIComponent(this.$route.query.redirect) : "/index"; this.$router.replace(redirect); util.successMsg("登录成功"); this.queryCustomer(); }).catch(res => { - if (res && res.status == 30001) { - this.phoneVisible = true; - } - this.getVerImg(); - this.loginForm.code = ""; + }); } else { return util.errorMsg("请检查表单数据"); diff --git a/src/setting.js b/src/setting.js index dc23dc8..a4295b9 100644 --- a/src/setting.js +++ b/src/setting.js @@ -36,9 +36,9 @@ if (isHh) { } else if (isDev) { jumpPath = "http://192.168.31.154:8087/"; // host = "http://39.108.250.202:9000/"; // 中台测试服 - host = "http://192.168.31.151:9000/"; // 榕 + // host = "http://192.168.31.151:9000/"; // 榕 // host = "http://192.168.31.125:9000/"; // 坤 - // host = 'http://192.168.31.137:9000/'; // 赓 + host = 'http://192.168.31.137:9000/'; // 赓 title = "职站服务端管理系统"; } else { console.log("其它版本");