update beta notice

pull/7621/head
Leopoldthecoder 2017-10-20 16:52:47 +08:00 committed by 杨奕
parent f0a85b8a6c
commit 0099a3f283
2 changed files with 6 additions and 6 deletions

View File

@ -200,12 +200,12 @@
this.renderAnchorHref();
this.goAnchor();
setTimeout(() => {
const notified = localStorage.getItem('ALPHA_NOTIFIED');
const notified = localStorage.getItem('BETA_NOTIFIED');
if (!notified) {
const h = this.$createElement;
const title = this.lang === 'zh-CN'
? '2.0.0 Alpha 发布'
: '2.0.0 Alpha released';
? '2.0.0 Beta 发布'
: '2.0.0 Beta released';
const messages = this.lang === 'zh-CN'
? ['点击', '这里', '查看详情']
: ['Click ', 'here', ' to learn more'];
@ -217,13 +217,13 @@
h('a', {
attrs: {
target: '_blank',
href: `https://github.com/ElemeFE/element/issues/${ this.lang === 'zh-CN' ? '7304' : '7305' }`
href: `https://github.com/ElemeFE/element/issues/${ this.lang === 'zh-CN' ? '7612' : '7613' }`
}
}, messages[1]),
messages[2]
]),
onClose() {
localStorage.setItem('ALPHA_NOTIFIED', 1);
localStorage.setItem('BETA_NOTIFIED', 1);
}
});
}

View File

@ -9,7 +9,7 @@
</head>
<body>
<div id="app"></div><% if (process.env.NODE_ENV === 'production') { %>
<script src="https://app.codesponsor.io/scripts/qFcVkt4f3DQEg4zrwINGVg?theme=light&height=250&width=240"></script>
<!--<script src="https://app.codesponsor.io/scripts/qFcVkt4f3DQEg4zrwINGVg?theme=light&height=250&width=240"></script>-->
<script src="//cdn.jsdelivr.net/npm/vue@2.3.0/dist/vue.runtime.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/vue-router@2.1.1/dist/vue-router.min.js"></script><% } %>
</body>