默认使用gitee上的源站文件

This commit is contained in:
haiyangcui
2021-02-21 12:49:57 +01:00
parent 7a72b352c0
commit 7bee4df2f9
2 changed files with 3 additions and 3 deletions

View File

@@ -411,8 +411,8 @@ export default {
resetSitesEvent () {
let url = this.setting.sitesDataURL
if (!url) {
// 如果没有设置源站文件链接,使用默认的github
url = 'https://raw.githubusercontent.com/cuiocean/ZY-Player-Resources/main/Sites/Sites.json'
// 如果没有设置源站文件链接,使用默认的gitee
url = 'https://gitee.com/cuiocean/ZY-Player-Resources/raw/main/Sites/Sites.json'
}
const axios = require('axios')
axios.get(url).then(res => {

View File

@@ -380,7 +380,7 @@ export default {
this.updateSettingEvent()
},
getDefaultdeSitesDataURL () {
this.setting.sitesDataURL = 'https://raw.githubusercontent.com/cuiocean/ZY-Player-Resources/main/Sites/Sites.json'
this.setting.sitesDataURL = 'https://gitee.com/cuiocean/ZY-Player-Resources/raw/main/Sites/Sites.json'
},
configSitesDataURL () {
if (!this.setting.sitesDataURL) this.getDefaultdeSitesDataURL()