Browse Source

3546

pull/85/head
zhangtao 1 year ago
parent
commit
5f96995236
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/views/login/index.vue

+ 1
- 1
src/views/login/index.vue View File

@@ -28,7 +28,7 @@ export default {
// userStore.getUserInfos()
const authority = res.profile.authority
const { VITE_PLATFORM } = import.meta.env
if (authority && (authority.includes(VITE_PLATFORM) || authority.includes('admin'))) {
if (authority && (authority.includes(VITE_PLATFORM))) {
router.push({ path: '/' })
} else {
$message.error('暂无权限访问,请联系管理员')

Loading…
Cancel
Save