add default for selected

This commit is contained in:
liangping 2021-08-14 10:32:34 +08:00
parent fea3980009
commit 3298a10397

View File

@ -14,6 +14,8 @@ configs.keys().forEach(k => {
// } else { // } else {
chains = update chains = update
localStorage.setItem('chains', JSON.stringify(update)) localStorage.setItem('chains', JSON.stringify(update))
const selected = chains.cosmos
// } // }
// Object.keys(update).forEach(key => { // Object.keys(update).forEach(key => {
@ -42,7 +44,7 @@ export default {
namespaced: true, namespaced: true,
state: { state: {
config: chains, config: chains,
selected: {}, selected,
avatars: {}, avatars: {},
}, },
getters: { getters: {