Commit 1323bdaf authored by zhengke's avatar zhengke

模版中心权限 修复

parent 6b8f86b6
...@@ -47,12 +47,12 @@ const activeIndex = ref(0) ...@@ -47,12 +47,12 @@ const activeIndex = ref(0)
const userStore= useUserStore() const userStore= useUserStore()
const userInfo = userStore.getUser const userInfo = userStore.getUser
if(!userInfo.isTemplate) router.push('/notfound') if(!userInfo.isTemplate && !userInfo.iv && !userInfo.ic && !userInfo.ia) router.push('/notfound')
const forwardSpace = () => router.push('/space') const forwardSpace = () => router.push('/space')
watch(() => router.currentRoute.value.path, (toPath) => { watch(() => router.currentRoute.value.path, (toPath) => {
if(!userInfo.isTemplate) return router.push('/notfound') if(!userInfo.isTemplate && !userInfo.iv && !userInfo.ic && !userInfo.ia) return router.push('/notfound')
menus.value = useMenu.getTemplateMenu menus.value = useMenu.getTemplateMenu
if(!menus.value) return if(!menus.value) return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment