diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 1ad77c5ff2..ae1831b1e5 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -5,7 +5,16 @@ module.exports = { }, '@vuepress/pwa': { serviceWorker: true, - updatePopup: true, + updatePopup: { + '/': { + message: '发现新内容可用', + buttonText: '刷新', + }, + '/en/': { + message: 'New content is available', + buttonText: 'Refresh', + }, + }, }, '@vuepress/back-to-top': true, '@vuepress/clean-urls': true, diff --git a/docs/.vuepress/styles/index.styl b/docs/.vuepress/styles/index.styl index d72430ef23..722198224b 100644 --- a/docs/.vuepress/styles/index.styl +++ b/docs/.vuepress/styles/index.styl @@ -34,3 +34,7 @@ a { #关于 { display: none; } + +.global-ui .sw-update-popup { + border: 1px solid #F5712C; +}