mirror of https://github.com/ElemeFE/element
update beta notice
parent
f0a85b8a6c
commit
0099a3f283
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue