summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpany <[email protected]>2023-06-13 13:01:13 +0800
committerpany <[email protected]>2023-06-13 13:01:13 +0800
commit62e1a7a63ddb273a21aba579e09570591b17c02d (patch)
treeae00200b607fe4a0d1afbf303a3f1c58238a0a6b /src
parent4dce9658ff7cb5c8d7bc79f8394e04de82130d7b (diff)
perf: 代码优化 layout/AppMain
Diffstat (limited to 'src')
-rw-r--r--src/layout/components/AppMain.vue1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue
index 473c3aa..9b26c41 100644
--- a/src/layout/components/AppMain.vue
+++ b/src/layout/components/AppMain.vue
@@ -7,6 +7,7 @@ const route = useRoute()
const tagsViewStore = useTagsViewStore()
const key = computed(() => {
+ // 返回 route.path 和 route.fullPath 有着不同的效果,大多数时候 path 更通用
return route.path
})
</script>