File tree Expand file tree Collapse file tree 3 files changed +1
-37
lines changed Expand file tree Collapse file tree 3 files changed +1
-37
lines changed Original file line number Diff line number Diff line change 34
34
let link = window . location . href
35
35
let info = get ( 'info' )
36
36
let time = get ( 'time' )
37
- let title = info . split ( '$' ) [ 0 ]
38
37
let url = info . split ( '$' ) [ 1 ]
39
38
let player = new window . HlsJsPlayer ( {
40
39
id : 'mse' ,
49
48
} )
50
49
player . on ( 'play' , function ( ) {
51
50
player . currentTime = time
52
- document . title = title
53
51
} )
54
52
</ script >
55
53
</ body >
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " zy" ,
3
- "version" : " 0.8.7 " ,
3
+ "version" : " 0.8.9 " ,
4
4
"author" : " Hunlongyu" ,
5
5
"description" : " ZY Player 资源播放器" ,
6
6
"private" : true ,
Original file line number Diff line number Diff line change 33
33
</el-card >
34
34
</el-row >
35
35
</el-row >
36
- <el-row class =" item update" >
37
- <el-row class =" title" ><i class =" el-icon-refresh" ></i ><span >更新</span ></el-row >
38
- <el-row class =" info" >
39
- <ul >
40
- <li >当前版本: {{oldVersion}}</li >
41
- <li >最新版本: {{newVersion}}</li >
42
- </ul >
43
- </el-row >
44
- <el-row class =" btns" >
45
- <el-button v-show =" download" size =" small" @click =" linkOpen('https://github.com/Hunlongyu/ZY-Player/releases/latest')" >下载更新</el-button >
46
- </el-row >
47
- </el-row >
48
36
<el-row class =" item about" >
49
37
<el-row class =" title" ><i class =" el-icon-view" ></i ><span >关于</span ></el-row >
50
38
<el-row class =" info" >
@@ -73,8 +61,6 @@ export default Vue.extend({
73
61
sites: sites ,
74
62
dbSite: 0 ,
75
63
opacity: 96 ,
76
- oldVersion: ' v0.8.7' ,
77
- newVersion: ' ' ,
78
64
download: false
79
65
}
80
66
},
@@ -136,23 +122,12 @@ export default Vue.extend({
136
122
this .$message .warning (' 切换主题失败~' )
137
123
})
138
124
},
139
- checkUpdate () {
140
- fly .get (' https://api.github.com/repos/Hunlongyu/ZY-Player/releases/latest' ).then (res => {
141
- this .newVersion = res .data .tag_name
142
- if (res .data .tag_name !== this .oldVersion ) {
143
- this .download = true
144
- } else {
145
- this .download = false
146
- }
147
- })
148
- },
149
125
setOpacity () {
150
126
ipc .send (' opacity' , this .opacity / 100 )
151
127
}
152
128
},
153
129
created () {
154
130
this .initSetting ()
155
- this .checkUpdate ()
156
131
}
157
132
})
158
133
</script >
@@ -191,15 +166,6 @@ export default Vue.extend({
191
166
}
192
167
}
193
168
}
194
- .update {
195
- ul {
196
- list-style : none ;
197
- li {
198
- height : 30px ;
199
- font-size : 14px ;
200
- }
201
- }
202
- }
203
169
.opacity {
204
170
.info {
205
171
width : 196px ;
You can’t perform that action at this time.
0 commit comments