From 9b71355803dcda85a256f70a1319b2493690b379 Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Sun, 15 Nov 2020 09:30:41 +0100 Subject: [PATCH] =?UTF-8?q?Recommendations=E9=83=BD=E6=98=AFcuiocean?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E4=BA=BA=E5=9C=A8=E7=BB=B4=E6=8A=A4,?= =?UTF-8?q?=E6=95=85=E5=B0=86=E8=AF=A5=E8=B5=84=E6=BA=90=E8=BD=AC=E7=A7=BB?= =?UTF-8?q?=E5=88=B0=E7=8B=AC=E7=AB=8B=E7=9A=84repository=E9=87=8C,?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E7=BB=A7=E7=BB=AD=E6=B1=A1=E6=9F=93=E6=9C=AC?= =?UTF-8?q?repo=E7=9A=84commit=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Recommendation.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/Recommendation.vue b/src/components/Recommendation.vue index b7569fb..d8cc021 100644 --- a/src/components/Recommendation.vue +++ b/src/components/Recommendation.vue @@ -232,15 +232,13 @@ export default { } }, updateEvent () { - const url = 'https://raw.githubusercontent.com/Hunlongyu/ZY-Player/master/src/lib/dexie/iniData/Recommendations.json' + const url = 'https://raw.githubusercontent.com/cuiocean/ZY-Player-Resources/main/Recommendations/Recommendations.json' this.loading = true const axios = require('axios') axios.get(url).then(res => { if (res.status === 200) { if (res.data.length > 0) { - this.recommendations = res.data.sort(function (a, b) { - return b.detail.year - a.detail.year - }) + this.recommendations = res.data recommendation.clear().then(recommendation.bulkAdd(this.recommendations)) this.getFilterData() this.$message.success('更新推荐成功')