diff --git a/index.html b/index.html index 634f365..81973cd 100644 --- a/index.html +++ b/index.html @@ -107,11 +107,12 @@ modelPop }, - created () { - req.axiosGet('/conf/apiStatus').then(res => { + async created () { + await req.axiosGet('/conf/apiStatus').then(res => { if (res.data.update) { sessionStorage.setItem('notice', res.data.msg); location.href = './notice.html'; + return; } }); let self = this;