|
|
@@ -1,5 +1,5 @@
|
|
|
<script lang="ts" setup>
|
|
|
-import { computed, nextTick, onMounted, ref, unref, watch } from 'vue'
|
|
|
+import { computed, nextTick, ref, unref, watch } from 'vue'
|
|
|
import type { RouteLocationNormalizedLoaded, RouterLinkProps } from 'vue-router'
|
|
|
import { useRouter } from 'vue-router'
|
|
|
import { usePermissionStore } from '@/store/modules/permission'
|
|
|
@@ -29,7 +29,14 @@ const { closeAll, closeLeft, closeRight, closeOther, closeCurrent, refreshPage }
|
|
|
|
|
|
const permissionStore = usePermissionStore()
|
|
|
|
|
|
-const routers = computed(() => permissionStore.getRouters)
|
|
|
+const route = useRoute()
|
|
|
+
|
|
|
+const routers = computed(() => {
|
|
|
+ const currentSource = sessionStorage.getItem('LOGIN_SOURCE') || route.query.source
|
|
|
+ return currentSource === 'zhly'
|
|
|
+ ? permissionStore.getRouters.filter((item) => item.path !== '/')
|
|
|
+ : permissionStore.getRouters
|
|
|
+})
|
|
|
|
|
|
const tagsViewStore = useTagsViewStore()
|
|
|
|