Prechádzať zdrojové kódy

退货步骤bug修改

asd26269546 2 rokov pred
rodič
commit
d096150dda
3 zmenil súbory, kde vykonal 4 pridanie a 4 odobranie
  1. 1 1
      src/views/Login.vue
  2. 2 2
      src/views/check-modal.vue
  3. 1 1
      src/views/check.vue

+ 1 - 1
src/views/Login.vue

@@ -102,7 +102,7 @@ export default {
                   if (res.result.isBindFace) {
                     // this.trackerTask.stop()
                     if (this.type === 2) {
-                      if (['storekeeper', 'supervisor', 'admin'].includes(res.result.roleKey)) {
+                      if (['storekeeper', 'supervisor', 'ckjy'].includes(res.result.roleKey)) {
                         this.$Message.success('登录成功!')
                         this.toNext()
                       } else {

+ 2 - 2
src/views/check-modal.vue

@@ -188,7 +188,7 @@ export default {
 			const _this = this
 			this.$store.dispatch('getUserInfo').then((res) => {
 				if (
-					['storekeeper', 'supervisor'].includes(res.result.roleKey)
+					['storekeeper', 'supervisor','ckjy'].includes(res.result.roleKey)
 				) {
 					this.$Message.success('登录成功!')
 					this.$store.commit('setToken', _this.tokenCopy)
@@ -299,7 +299,7 @@ export default {
 					}).then((res) => {
 						if (
 							res.code === 0 &&
-							['storekeeper', 'ckjy'].includes(res.result.roleKey)
+							['storekeeper', 'supervisor', 'ckjy'].includes(res.result.roleKey)
 						) {
 							_this.modal = false
 							_this.$emit('face-check', true)

+ 1 - 1
src/views/check.vue

@@ -131,7 +131,7 @@ export default {
     /* 登录成功后跳转 */
     toNext() {
       this.$store.dispatch('getUserInfo').then(res => {
-        if (['storekeeper', 'supervisor'].includes(res.result.roleKey)) {
+        if (['storekeeper', 'supervisor', 'ckjy'].includes(res.result.roleKey)) {
           this.$Message.success('登录成功!')
           this.trackerTask.stop();
           this.$router.push({