File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
- GH_TOKEN = 97570b8c9f368027800fb555f9a860aa5bf91121
1
+ GH_TOKEN = 7d2166f485858c3b2f90f784dd3c8213c996c380
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " zy" ,
3
- "version" : " 0.7.21 " ,
3
+ "version" : " 0.7.22 " ,
4
4
"author" : " Hunlongyu" ,
5
5
"description" : " ZY Player 资源播放器" ,
6
6
"private" : true ,
Original file line number Diff line number Diff line change 30
30
<el-row class =" title" ><i class =" el-icon-refresh" ></i ><span >更新</span ></el-row >
31
31
<el-row class =" info" >
32
32
<ul >
33
- <li >当前版本: {{version }}</li >
34
- <li >最新版本: {{version }}</li >
33
+ <li >当前版本: {{oldVersion }}</li >
34
+ <li >最新版本: {{newVersion }}</li >
35
35
</ul >
36
36
</el-row >
37
37
<el-row class =" btns" >
@@ -63,7 +63,8 @@ export default Vue.extend({
63
63
return {
64
64
sites: sites ,
65
65
dbSite: 0 ,
66
- version: ' v0.7.21' ,
66
+ oldVersion: ' v0.7.22' ,
67
+ newVersion: ' ' ,
67
68
download: false
68
69
}
69
70
},
@@ -127,7 +128,8 @@ export default Vue.extend({
127
128
},
128
129
checkUpdate () {
129
130
fly .get (' https://api.github.com/repos/Hunlongyu/ZY-Player/releases/latest' ).then (res => {
130
- if (res .data .tag_name !== this .version ) {
131
+ if (res .data .tag_name !== this .oldVersion ) {
132
+ this .newVersion = res .data .tag_name
131
133
this .download = true
132
134
} else {
133
135
this .download = false
You can’t perform that action at this time.
0 commit comments