From 3298a1039777ef3eaa2c12df1601394026c44a5c Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sat, 14 Aug 2021 10:32:34 +0800 Subject: [PATCH] add default for selected --- src/store/chains/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store/chains/index.js b/src/store/chains/index.js index f497ad01..fc438183 100644 --- a/src/store/chains/index.js +++ b/src/store/chains/index.js @@ -14,6 +14,8 @@ configs.keys().forEach(k => { // } else { chains = update localStorage.setItem('chains', JSON.stringify(update)) +const selected = chains.cosmos + // } // Object.keys(update).forEach(key => { @@ -42,7 +44,7 @@ export default { namespaced: true, state: { config: chains, - selected: {}, + selected, avatars: {}, }, getters: {