This commit is contained in:
LouisLam 2021-09-24 15:26:48 +08:00
parent a856780066
commit 50b868e751

View file

@ -377,7 +377,7 @@ export default {
}, },
async created() { async created() {
this.hasToken = ("token" in localStorage); this.hasToken = ("token" in this.$root.storage());
// Browser change page // Browser change page
// https://stackoverflow.com/questions/7317273/warn-user-before-leaving-web-page-with-unsaved-changes // https://stackoverflow.com/questions/7317273/warn-user-before-leaving-web-page-with-unsaved-changes