Skip to content

Commit 8f89c3d

Browse files
committed
v0.7.22 优化更新
1 parent c8881be commit 8f89c3d

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
GH_TOKEN=97570b8c9f368027800fb555f9a860aa5bf91121
1+
GH_TOKEN=7d2166f485858c3b2f90f784dd3c8213c996c380

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zy",
3-
"version": "0.7.21",
3+
"version": "0.7.22",
44
"author": "Hunlongyu",
55
"description": "ZY Player 资源播放器",
66
"private": true,

src/page/setting.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
<el-row class="title"><i class="el-icon-refresh"></i><span>更新</span></el-row>
3131
<el-row class="info">
3232
<ul>
33-
<li>当前版本: {{version}}</li>
34-
<li>最新版本: {{version}}</li>
33+
<li>当前版本: {{oldVersion}}</li>
34+
<li>最新版本: {{newVersion}}</li>
3535
</ul>
3636
</el-row>
3737
<el-row class="btns">
@@ -63,7 +63,8 @@ export default Vue.extend({
6363
return {
6464
sites: sites,
6565
dbSite: 0,
66-
version: 'v0.7.21',
66+
oldVersion: 'v0.7.22',
67+
newVersion: '',
6768
download: false
6869
}
6970
},
@@ -127,7 +128,8 @@ export default Vue.extend({
127128
},
128129
checkUpdate () {
129130
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
131133
this.download = true
132134
} else {
133135
this.download = false

0 commit comments

Comments
 (0)