From 38461b6af3093d8fd6dd6bdf942d6070adf93e20 Mon Sep 17 00:00:00 2001 From: "huanqing.shao" Date: Tue, 20 Aug 2019 22:22:05 +0800 Subject: [PATCH] stargazer --- .vuepress/components/StarGazer.vue | 9 +++++---- .vuepress/theme/index.js | 2 +- .vuepress/theme/layouts/Layout.vue | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.vuepress/components/StarGazer.vue b/.vuepress/components/StarGazer.vue index d6eaa7b..0137968 100644 --- a/.vuepress/components/StarGazer.vue +++ b/.vuepress/components/StarGazer.vue @@ -4,11 +4,12 @@ title="感谢阅读" :visible.sync="dialogVisible" width="50%" + :append-to-body ="true" :before-close="handleClose"> 如果这篇文档有帮到您,劳烦移步 github 给一个 star,谢谢! 一会儿再说 - 现在就去 + 够义气,现在就去! @@ -40,19 +41,19 @@ export default { .catch(_ => {}); }, waitAMoment() { - if (localStorage.getItem('stared')) { + if (localStorage.getItem('stared') === 'true') { return } this.dialogVisible = false let _this = this setTimeout(_ => { _this.dialogVisible = true - }, 60000 * 5) + }, 60000 * 3) }, gotoStar() { this.dialogVisible = false window.open('https://github.com/eip-work/kuboard-press') - localStorage.setItem('stared', true) + localStorage.setItem('stared', 'true') } } } diff --git a/.vuepress/theme/index.js b/.vuepress/theme/index.js index 06bbbb0..b91b8a5 100644 --- a/.vuepress/theme/index.js +++ b/.vuepress/theme/index.js @@ -1,3 +1,3 @@ module.exports = { extend: '@vuepress/theme-default' -} \ No newline at end of file +} diff --git a/.vuepress/theme/layouts/Layout.vue b/.vuepress/theme/layouts/Layout.vue index c58eef3..00a39ea 100644 --- a/.vuepress/theme/layouts/Layout.vue +++ b/.vuepress/theme/layouts/Layout.vue @@ -18,6 +18,7 @@ 支持 --> +
Copyright © 2019-present 仁聚汇通 | 京ICP备19008693号-2