feat: 新增系统升级页面

This commit is contained in:
wangsongsole 2023-12-23 19:40:54 +08:00
parent 35a92c05dd
commit 6f9907d93a
2 changed files with 13 additions and 2 deletions

View File

@ -108,6 +108,12 @@
}, },
created () { created () {
req.axiosGet('/conf/apiStatus').then(res => {
if (res.data.update) {
sessionStorage.setItem('notice', res.data.msg);
location.href = './notice.html';
}
});
let self = this; let self = this;
//获取链接携带的参数 //获取链接携带的参数
let linkId = this.getQueryString('id'); let linkId = this.getQueryString('id');

View File

@ -96,7 +96,7 @@
<img src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/popNotes.png" class="icon"> <img src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/popNotes.png" class="icon">
<p class="title">温馨提示</p> <p class="title">温馨提示</p>
<p class="text"> <p class="text">
系统正在升级,请稍后再试。 {{notice}}
</p> </p>
</div> </div>
</div> </div>
@ -105,7 +105,12 @@
<script> <script>
const { createApp } = Vue; const { createApp } = Vue;
createApp({ setup () { } }).mount('#app') createApp({
setup () {
const notice = sessionStorage.getItem('notice');
return { notice };
}
}).mount('#app')
</script> </script>
</html> </html>