mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-05-05 20:44:52 +08:00
v0.8.9 移除版本相关提示
This commit is contained in:
@@ -34,7 +34,6 @@
|
||||
let link = window.location.href
|
||||
let info = get('info')
|
||||
let time = get('time')
|
||||
let title = info.split('$')[0]
|
||||
let url = info.split('$')[1]
|
||||
let player = new window.HlsJsPlayer({
|
||||
id: 'mse',
|
||||
@@ -49,7 +48,6 @@
|
||||
})
|
||||
player.on('play', function () {
|
||||
player.currentTime = time
|
||||
document.title = title
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "zy",
|
||||
"version": "0.8.7",
|
||||
"version": "0.8.9",
|
||||
"author": "Hunlongyu",
|
||||
"description": "ZY Player 资源播放器",
|
||||
"private": true,
|
||||
|
||||
@@ -33,18 +33,6 @@
|
||||
</el-card>
|
||||
</el-row>
|
||||
</el-row>
|
||||
<el-row class="item update">
|
||||
<el-row class="title"><i class="el-icon-refresh"></i><span>更新</span></el-row>
|
||||
<el-row class="info">
|
||||
<ul>
|
||||
<li>当前版本: {{oldVersion}}</li>
|
||||
<li>最新版本: {{newVersion}}</li>
|
||||
</ul>
|
||||
</el-row>
|
||||
<el-row class="btns">
|
||||
<el-button v-show="download" size="small" @click="linkOpen('https://github.com/Hunlongyu/ZY-Player/releases/latest')">下载更新</el-button>
|
||||
</el-row>
|
||||
</el-row>
|
||||
<el-row class="item about">
|
||||
<el-row class="title"><i class="el-icon-view"></i><span>关于</span></el-row>
|
||||
<el-row class="info">
|
||||
@@ -73,8 +61,6 @@ export default Vue.extend({
|
||||
sites: sites,
|
||||
dbSite: 0,
|
||||
opacity: 96,
|
||||
oldVersion: 'v0.8.7',
|
||||
newVersion: '',
|
||||
download: false
|
||||
}
|
||||
},
|
||||
@@ -136,23 +122,12 @@ export default Vue.extend({
|
||||
this.$message.warning('切换主题失败~')
|
||||
})
|
||||
},
|
||||
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.download = true
|
||||
} else {
|
||||
this.download = false
|
||||
}
|
||||
})
|
||||
},
|
||||
setOpacity () {
|
||||
ipc.send('opacity', this.opacity / 100)
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this.initSetting()
|
||||
this.checkUpdate()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
@@ -191,15 +166,6 @@ export default Vue.extend({
|
||||
}
|
||||
}
|
||||
}
|
||||
.update{
|
||||
ul{
|
||||
list-style: none;
|
||||
li{
|
||||
height: 30px;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.opacity{
|
||||
.info{
|
||||
width: 196px;
|
||||
|
||||
Reference in New Issue
Block a user