chore: update

This commit is contained in:
xiaoxian521
2022-07-18 16:07:03 +08:00
parent a73610672f
commit af71024f42
15 changed files with 2023 additions and 4590 deletions

View File

@@ -5,7 +5,7 @@ import { emitter } from "/@/utils/mitt";
let show = ref<Boolean>(false);
const target = ref(null);
onClickOutside(target, event => {
onClickOutside(target, (event: any) => {
if (event.clientX > target.value.offsetLeft) return;
show.value = false;
});

View File

@@ -9,8 +9,8 @@ import { useRoute, useRouter, RouteLocationMatched } from "vue-router";
const route = useRoute();
const levelList = ref([]);
const router = useRouter();
const routes = router.options.routes;
const multiTags = useMultiTagsStoreHook().multiTags;
const routes: any = router.options.routes;
const multiTags: any = useMultiTagsStoreHook().multiTags;
const isDashboard = (route: RouteLocationMatched): boolean | string => {
const name = route && (route.name as string);

View File

@@ -289,6 +289,7 @@ function dynamicRouteTag(value: string, parentPath: string): void {
});
}
}
// @ts-expect-error
concatPath(router.options.routes, value, parentPath);
}