Просмотр исходного кода

Merge branch 'yufei' of gitadmin/tuoheng_pilot_web into develop

pull/120/head
yufei111 1 год назад
Родитель
Сommit
921d441f13
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      src/views/login/index.vue

+ 1
- 1
src/views/login/index.vue Просмотреть файл

nextTick(() => { nextTick(() => {
const authority = res.profile.authority const authority = res.profile.authority
const { VITE_PLATFORM } = import.meta.env const { VITE_PLATFORM } = import.meta.env
if (authority && (authority.includes(VITE_PLATFORM) || authority.includes('admin'))) {
if (authority && (authority.includes(VITE_PLATFORM))) {
router.push({ path: '/' }) router.push({ path: '/' })
} else { } else {
$message.error('暂无权限访问,请联系管理员') $message.error('暂无权限访问,请联系管理员')

Загрузка…
Отмена
Сохранить