This commit is contained in:
qsh
2025-10-17 18:07:15 +08:00
parent 742e85ae65
commit fa2ee0cd6a
11 changed files with 705 additions and 16 deletions

View File

@@ -9,6 +9,7 @@ import { useUserStoreWithOut } from '@/store/modules/user'
import { usePermissionStoreWithOut } from '@/store/modules/permission'
import { useAppStoreWithOut } from '@/store/modules/app'
import { getTenantId, getAppId, setTenantId, setAppId } from '@/utils/auth'
import { checkPermi } from '@/utils/permission'
const { start, done } = useNProgress()
@@ -40,6 +41,13 @@ router.beforeEach(async (to, from, next) => {
await waitTime(1500)
}
next({ path: '/' })
} else if (to.name == 'ReceiveInput') {
if (!checkPermi(['clue:remark:receive-input'])) {
next({ path: '/403', replace: true, query: { noGoBack: true } })
return
} else {
next()
}
} else {
// 获取所有字典
const dictStore = useDictStoreWithOut()