diff --git a/.vuepress/config.js b/.vuepress/config.js
index aa1a6a8..70536ad 100644
--- a/.vuepress/config.js
+++ b/.vuepress/config.js
@@ -17,6 +17,13 @@ module.exports = {
transformer: (timestamp, lang) => {
return dateFns.format(timestamp, 'YYYY-MM-DD HH:mm:ss')
}
+ },
+ '@vuepress/pwa': {
+ serviceWorker: true,
+ updatePopup: {
+ message: "内容已更新",
+ buttonText: "刷新"
+ }
}
},
themeConfig: {
diff --git a/.vuepress/theme/components/Sidebar.vue b/.vuepress/theme/components/Sidebar.vue
index 7161866..3ec05ce 100644
--- a/.vuepress/theme/components/Sidebar.vue
+++ b/.vuepress/theme/components/Sidebar.vue
@@ -3,7 +3,7 @@