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

2
.env
View File

@@ -1 +1 @@
GH_TOKEN=7d2166f485858c3b2f90f784dd3c8213c996c380
GH_TOKEN=e6b3c80d135bb3367fcf4628d424f2514224296d

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