fix(数据集): 【权限】数据集编辑可以通过拼接 url 访问

This commit is contained in:
fit2cloud-chenyw
2025-09-10 11:49:40 +08:00
committed by fit2cloud-chenyw
parent 7ba85871a0
commit 7d72c6b607

View File

@@ -77,6 +77,9 @@ export const usePermissionStoreWithOut = () => {
}
export const pathValid = path => {
if (path === '/dataset-form') {
path = '/data/dataset'
}
const permissionStore = usePermissionStore(store)
const routers = permissionStore.getRouters
const temp = path.startsWith('/') ? path.substr(1) : path