From bc84debfb4e462363d91d74648c98c0f50607591 Mon Sep 17 00:00:00 2001 From: time Date: Wed, 2 Jan 2019 22:41:02 +0800 Subject: [PATCH] fix change account bug --- src/views/home.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/home.vue b/src/views/home.vue index e378d48..b3b1b58 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -326,7 +326,7 @@ export default { return; } - if (localStorage.currentAccount != undefined) { + if (localStorage.currentAccount != undefined && localStorage.currentAccount != '{}') { this.currentAccount = JSON.parse(localStorage.currentAccount); } else { this.currentAccount = accounts[0]; -- 2.11.0