diff --git a/.env b/.env index 6bbd9df..75e95a2 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -GH_TOKEN=24f0914002270ceb8031787549550b7e43ddcc74 \ No newline at end of file +GH_TOKEN=97570b8c9f368027800fb555f9a860aa5bf91121 \ No newline at end of file diff --git a/package.json b/package.json index 99b0077..7961a8a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zy", - "version": "0.7.20", + "version": "0.7.21", "author": "Hunlongyu", "description": "ZY Player 资源播放器", "private": true, diff --git a/src/assets/theme/dark.scss b/src/assets/theme/dark.scss index b4b2fe6..34e6a4a 100644 --- a/src/assets/theme/dark.scss +++ b/src/assets/theme/dark.scss @@ -42,6 +42,10 @@ width: 0px; } } + .el-loading-mask{ + background-color: var(--d-bgc); + opacity: 0.9; + } .Header, .Aside{ i{ color: var(--d-icon); diff --git a/src/page/setting.vue b/src/page/setting.vue index 10c688a..ad24dd5 100644 --- a/src/page/setting.vue +++ b/src/page/setting.vue @@ -26,10 +26,16 @@ - + 更新 + +
    +
  • 当前版本: {{version}}
  • +
  • 最新版本: {{version}}
  • +
+
- 检查更新 + 下载更新
@@ -56,7 +62,9 @@ export default Vue.extend({ data () { return { sites: sites, - dbSite: 0 + dbSite: 0, + version: 'v0.7.21', + download: false } }, computed: { @@ -118,11 +126,18 @@ export default Vue.extend({ }) }, checkUpdate () { - fly.get('https://api.github.com/repos/Hunlongyu/ZY-Player/releases/latest').then(() => {}).catch(() => {}) + fly.get('https://api.github.com/repos/Hunlongyu/ZY-Player/releases/latest').then(res => { + if (res.data.tag_name !== this.version) { + this.download = true + } else { + this.download = false + } + }) } }, created () { this.initSetting() + this.checkUpdate() } })