From c4f4c410998437b7c63bac63976369c707ccc182 Mon Sep 17 00:00:00 2001 From: layyback <18511759309@163.com> Date: Sat, 22 Jan 2022 23:18:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=95=86=E5=9F=8E=E6=94=B9=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/assets/api/index.js | 4 +- src/renderer/pages/search/subpages/market.vue | 42 ++++++++++++------- 2 files changed, 30 insertions(+), 16 deletions(-) diff --git a/src/renderer/assets/api/index.js b/src/renderer/assets/api/index.js index f4cbdbd..799d1b2 100755 --- a/src/renderer/assets/api/index.js +++ b/src/renderer/assets/api/index.js @@ -20,8 +20,8 @@ export default { axios.get( `https://gitlab.com/api/v4/projects/layyback%2Fquicker-market/repository/files/${plugin.path}%2F${plugin.detail}/raw?ref=master` ), - getDownloadUrl: plugin => - `https://gitlab.com/api/v4/projects/layyback%2Fquicker-market/repository/archive.zip?path=plugins%2F${plugin.name}`, + getDownloadUrl: pluginPath => + `https://gitlab.com/api/v4/projects/layyback%2Fquicker-market/repository/archive.zip?path=${pluginPath}`, getPluginDetail: pluginPath => axios.get( `https://gitlab.com/api/v4/projects/layyback%2Fquicker-market/repository/files/${pluginPath}%2Fplugin.json/raw?ref=master` diff --git a/src/renderer/pages/search/subpages/market.vue b/src/renderer/pages/search/subpages/market.vue index 995c27c..cf6c1ef 100755 --- a/src/renderer/pages/search/subpages/market.vue +++ b/src/renderer/pages/search/subpages/market.vue @@ -1,13 +1,9 @@