|
@@ -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)
|