This commit is contained in:
hunlongyu
2020-01-20 18:08:44 +08:00
parent 8f89c3db4d
commit 367bd0ebd7
2 changed files with 2 additions and 2 deletions

View File

@@ -128,8 +128,8 @@ export default Vue.extend({
},
checkUpdate () {
fly.get('https://api.github.com/repos/Hunlongyu/ZY-Player/releases/latest').then(res => {
this.newVersion = res.data.tag_name
if (res.data.tag_name !== this.oldVersion) {
this.newVersion = res.data.tag_name
this.download = true
} else {
this.download = false