We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1100646 commit 28a5322Copy full SHA for 28a5322
src/layouts/components/Topbar/Toolbar/Breadcrumb/index.vue
@@ -8,10 +8,11 @@ const route = useRoute()
8
9
const settingsStore = useSettingsStore()
10
11
-const breadcrumbList = ref<{ path: string, title: string }[]>([])
12
-watch(() => route.matched, () => {
+// 面包屑备份
+let breadcrumbListBackup: any = []
13
+const breadcrumbList = computed(() => {
14
if (route.name === 'reload') {
- return
15
+ return breadcrumbListBackup
16
}
17
const list = []
18
if (settingsStore.settings.home.enable) {
@@ -28,9 +29,8 @@ watch(() => route.matched, () => {
28
29
})
30
31
- breadcrumbList.value = list
32
-}, {
33
- immediate: true,
+ breadcrumbListBackup = list
+ return list
34
35
36
function pathCompile(path: string) {
0 commit comments