在登录页添加一个按钮来新建助记词,免得每次都翻文档找一个Mnemonic,但是还没有成功。

This commit is contained in:
luk.lu
2018-11-16 18:38:27 +08:00
parent 55f3f22313
commit 390d3ed15e
7 changed files with 21 additions and 4 deletions

View File

@@ -46,5 +46,12 @@ export default {
commit('updateError', i18n.t('login.errorMnemonic'))
}
},
async createSecword({ state, commit }) {
alert('entering createSecword')
let secword = await ticApi.randomSecword('English')
alert('after secword')
console.info('secword=' + secword)
alert('secword=' + secword)
},
},
}