补上翻译

This commit is contained in:
lyswhut
2020-02-23 23:56:09 +08:00
parent 09a7974818
commit 0332b22c4a
6 changed files with 26 additions and 9 deletions
+7 -4
View File
@@ -219,10 +219,13 @@ export default {
}
},
showUpdateModal() {
(this.version.newVersion && this.version.newVersion.history ? Promise.resolve(this.version.newVersion) : this.getVersionInfo().then(body => {
this.setNewVersion(body)
return body
})).catch(() => {
(this.version.newVersion && this.version.newVersion.history
? Promise.resolve(this.version.newVersion)
: this.getVersionInfo().then(body => {
this.setNewVersion(body)
return body
})
).catch(() => {
if (this.version.newVersion) return this.version.newVersion
this.setVersionModalVisible({ isUnknow: true })
let result = {