diff --git a/src/api/index.js b/src/api/index.js index b7ff9f3..e42abeb 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -8,6 +8,7 @@ export default { logins: `${host}users/users/user/login`, //登录 verification: `${host}users/users/user/captcha`,// 验证码图片 + isClient: `${host}users/users/user/isClient`,// 验证码图片 // 权限管理 getUserRolesPermissionMenu: `${host}users/user-role/getUserRolesPermissionMenu`, diff --git a/src/main.js b/src/main.js index 719d2d7..4d783c7 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 3aa750e..0625407 100644 --- a/src/pages/account/login/index.vue +++ b/src/pages/account/login/index.vue @@ -140,7 +140,10 @@ export default { }); }, queryCustomer() { // 查询是否是客户 - + this.$get(this.api.isClient).then(res => { + this.setCustomer(res.customer); + this.setCustomerName(res.customerName); + }).catch(res => {}); }, phoneCountdown() { let count = 60; diff --git a/src/pages/evaluation/list/index.vue b/src/pages/evaluation/list/index.vue index 82a56e3..d38f21d 100644 --- a/src/pages/evaluation/list/index.vue +++ b/src/pages/evaluation/list/index.vue @@ -44,19 +44,15 @@