From 50b868e7513f84d68464f9b4e52f4469d9cc150c Mon Sep 17 00:00:00 2001 From: LouisLam Date: Fri, 24 Sep 2021 15:26:48 +0800 Subject: [PATCH] fix #465 --- src/pages/StatusPage.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/StatusPage.vue b/src/pages/StatusPage.vue index e8623ca56..767578aeb 100644 --- a/src/pages/StatusPage.vue +++ b/src/pages/StatusPage.vue @@ -377,7 +377,7 @@ export default { }, async created() { - this.hasToken = ("token" in localStorage); + this.hasToken = ("token" in this.$root.storage()); // Browser change page // https://stackoverflow.com/questions/7317273/warn-user-before-leaving-web-page-with-unsaved-changes