mirror of https://github.com/ElemeFE/element
update beta notice
parent
f0a85b8a6c
commit
0099a3f283
|
@ -200,12 +200,12 @@
|
||||||
this.renderAnchorHref();
|
this.renderAnchorHref();
|
||||||
this.goAnchor();
|
this.goAnchor();
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const notified = localStorage.getItem('ALPHA_NOTIFIED');
|
const notified = localStorage.getItem('BETA_NOTIFIED');
|
||||||
if (!notified) {
|
if (!notified) {
|
||||||
const h = this.$createElement;
|
const h = this.$createElement;
|
||||||
const title = this.lang === 'zh-CN'
|
const title = this.lang === 'zh-CN'
|
||||||
? '2.0.0 Alpha 发布'
|
? '2.0.0 Beta 发布'
|
||||||
: '2.0.0 Alpha released';
|
: '2.0.0 Beta released';
|
||||||
const messages = this.lang === 'zh-CN'
|
const messages = this.lang === 'zh-CN'
|
||||||
? ['点击', '这里', '查看详情']
|
? ['点击', '这里', '查看详情']
|
||||||
: ['Click ', 'here', ' to learn more'];
|
: ['Click ', 'here', ' to learn more'];
|
||||||
|
@ -217,13 +217,13 @@
|
||||||
h('a', {
|
h('a', {
|
||||||
attrs: {
|
attrs: {
|
||||||
target: '_blank',
|
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[1]),
|
||||||
messages[2]
|
messages[2]
|
||||||
]),
|
]),
|
||||||
onClose() {
|
onClose() {
|
||||||
localStorage.setItem('ALPHA_NOTIFIED', 1);
|
localStorage.setItem('BETA_NOTIFIED', 1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div><% if (process.env.NODE_ENV === 'production') { %>
|
<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@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><% } %>
|
<script src="//cdn.jsdelivr.net/npm/vue-router@2.1.1/dist/vue-router.min.js"></script><% } %>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue