diff --git a/src/utils/language.js b/src/utils/language.js index 4053c40..6521db9 100644 --- a/src/utils/language.js +++ b/src/utils/language.js @@ -278,6 +278,14 @@ export function lang() { CHS:{ title: '更新日志', timeline: [ + { + label: '修复云端最后修改时间不更新的问题', + tag:'bug修复', + content: [ + '之前同步密码本至本地后云端最后修改时间不会同时更新,现已修复', + '2020-03-06' + ] + }, { label: '新增页面返回手势', tag:'功能更新', @@ -355,6 +363,14 @@ export function lang() { EN:{ title: 'Update Log', timeline: [ + { + label: 'Fix the problem that the last modification time of the cloud is not updated', + tag:'Bug fix', + content: [ + 'The last modified time in the cloud will not be updated at the same time after syncing the password book to the local, it is now fixed', + '2020-03-06' + ] + }, { label: 'Add page back gesture', tag:'Feature update', diff --git a/src/views/Account/Account.vue b/src/views/Account/Account.vue index ab91a4a..c47c76c 100644 --- a/src/views/Account/Account.vue +++ b/src/views/Account/Account.vue @@ -353,11 +353,15 @@ export default { }; syncLocal(data) .then(res => { - // console.log(res.data) + console.log(res.data) if (res.data.errcode == 200) { // 获取成功 this.setRowData([res.data.codebook, this]); console.log('数据获取成功,密码本覆写成功'); + let user_infos = this.user_infos; + user_infos.update_time = res.data.update_time; + this.setUserInfo([user_infos, this]); + console.log('数据获取成功,用户信息覆写成功'); this.snakebar_msg = this.lang.snakebar_msg[7]; this.show_snackbar = true; } else {