OSDN Git Service
(root)
/
bytom
/
Byone.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8510c6f
)
fix account balance view
author
time
<diqiuxuxu@gmail.com>
Wed, 2 Jan 2019 15:12:33 +0000
(23:12 +0800)
committer
time
<diqiuxuxu@gmail.com>
Wed, 2 Jan 2019 15:12:33 +0000
(23:12 +0800)
src/views/home.vue
patch
|
blob
|
history
diff --git
a/src/views/home.vue
b/src/views/home.vue
index
8f27daa
..
5aee681
100644
(file)
--- a/
src/views/home.vue
+++ b/
src/views/home.vue
@@
-325,12
+325,8
@@
export default {
this.currentAccount = {};
return;
}
-
- if (localStorage.currentAccount != undefined && localStorage.currentAccount != '{}') {
- this.currentAccount = JSON.parse(localStorage.currentAccount);
- } else {
- this.currentAccount = accounts[0];
- }
+ this.currentAccount = accounts[0];
+ this.refreshBalance(this.currentAccount.guid);
})
},
refreshBalance: function (guid) {