diff --git a/src/utils/language.js b/src/utils/language.js index d3723c6..1872c99 100644 --- a/src/utils/language.js +++ b/src/utils/language.js @@ -284,6 +284,14 @@ export function lang() { CHS:{ title: '更新日志', timeline: [ + { + label: '修复密码本为空的情况下解锁页面变为创建主密码', + tag:'bug修复', + content: [ + '密码本为空的情况下,解锁的页面会变成创建主密码,会进行不必要的输入,已修复', + '2020-09-02' + ] + }, { label: '长理专版密码本改造完成', tag:'功能更新', @@ -417,6 +425,14 @@ export function lang() { EN:{ title: 'Update Log', timeline: [ + { + label: 'Fix that the unlock page becomes create master password when the password book is empty', + tag:'Bug fix', + content: [ + 'When the password book is empty, the unlocked page will become the creation of the master password, and unnecessary input will be made, which is fixed', + '2020-09-02' + ] + }, { label: 'Changli special edition codebook transformation completed', tag:'Feature update', diff --git a/src/views/Home/Home.vue b/src/views/Home/Home.vue index 349ce80..665af4e 100644 --- a/src/views/Home/Home.vue +++ b/src/views/Home/Home.vue @@ -232,7 +232,7 @@ export default { user_name: 'A Little Canary', cid: 'Codebook', row_login_pwd: '', - drivce: this.settings.is_chinese ? '暂无' : 'unknown', + drivce: '', cloud_drivce: this.settings.is_chinese ? '暂无' : 'unknown', update_time: new Date().getTime() }; diff --git a/src/views/Unlock/Unlock.vue b/src/views/Unlock/Unlock.vue index d57af1e..ce7d8dd 100644 --- a/src/views/Unlock/Unlock.vue +++ b/src/views/Unlock/Unlock.vue @@ -92,7 +92,7 @@ export default { this.$store.replaceState(Object.assign(this.$store.state, JSON.parse(localStorage.getItem('storeState')))); this.initLanguage(); // 判断是创建密码还是输入密码 - this.is_create = this.row_data ? false : true; + this.is_create = !this.row_data && !this.user_infos.drivce; }, // 配置语言 @@ -163,7 +163,6 @@ export default { create_time: new Date().getTime() }; let user_infos = this.user_infos - console.log(user_infos, this.drivce) user_infos.drivce = this.drivce this.setUserInfo([user_infos, this]) this.setRowPwd([row_pwd, this]);