diff --git a/src/layout/components/NavBar.vue b/src/layout/components/NavBar.vue index 6c021435..d3292025 100644 --- a/src/layout/components/NavBar.vue +++ b/src/layout/components/NavBar.vue @@ -86,17 +86,7 @@ limitations under the License. --> function getPathNames() { const p = route.params; - // get names - - // set names - if (appStore.pathNames.length && p.layerId === appStore.pathNames[0].layerId) { - const arr = [...appStore.pathNames, p]; - const list = deduplication(arr, ["layerId", "entity", "name"]); - appStore.setPathNames(list); - } else { - appStore.setPathNames([p]); - } - // console.log(route.params); + console.log(route.meta); } watch( diff --git a/src/store/modules/app.ts b/src/store/modules/app.ts index 65a6ae47..2065a163 100644 --- a/src/store/modules/app.ts +++ b/src/store/modules/app.ts @@ -35,7 +35,6 @@ interface AppState { version: string; isMobile: boolean; reloadTimer: Nullable; - pathNames: { name: string; layer: string; entity: string }[]; } export const appStore = defineStore({ @@ -56,7 +55,6 @@ export const appStore = defineStore({ version: "", isMobile: false, reloadTimer: null, - pathNames: [], }), getters: { duration(): Duration { @@ -148,9 +146,6 @@ export const appStore = defineStore({ setPageTitle(title: string) { this.pageTitle = title; }, - setPathNames(names: { name: string; layer: string; entity: string }[]) { - this.pathNames = names; - }, runEventStack() { if (this.timer) { clearTimeout(this.timer);