@sugarat/theme 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sugarat/theme",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "简约风的 Vitepress 博客主题,sugarat vitepress blog theme",
5
5
  "author": "sugar",
6
6
  "license": "MIT",
@@ -51,8 +51,8 @@
51
51
  "vitepress-markdown-timeline": "^1.2.1",
52
52
  "vitepress-plugin-mermaid": "2.0.13",
53
53
  "vitepress-plugin-tabs": "0.2.0",
54
- "vitepress-plugin-pagefind": "0.3.2",
55
- "vitepress-plugin-rss": "0.2.4"
54
+ "vitepress-plugin-pagefind": "0.3.3",
55
+ "vitepress-plugin-rss": "0.2.6"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@element-plus/icons-vue": "^2.3.1",
@@ -83,6 +83,11 @@ function refreshCurrentPage() {
83
83
  watch(route, () => {
84
84
  refreshCurrentPage()
85
85
  }, { immediate: true })
86
+
87
+ // 未覆盖的场景处理 左上回到首页
88
+ router.onAfterRouteChanged = () => {
89
+ refreshCurrentPage()
90
+ }
86
91
  </script>
87
92
 
88
93
  <template>