From 6f9830a181cfe3fbaa24ab38efd32095b7f9b1af Mon Sep 17 00:00:00 2001 From: muwoo <2424880409@qq.com> Date: Fri, 10 Dec 2021 17:48:08 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=94=AF=E6=8C=81=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E8=AF=A6=E6=83=85=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- feature/src/assets/request/index.ts | 11 ++++ .../views/market/components/plugin-list.vue | 32 ++++++++++-- .../src/views/market/components/worker.vue | 50 ++++++++++++++++--- feature/src/views/market/index.vue | 2 + 4 files changed, 84 insertions(+), 11 deletions(-) diff --git a/feature/src/assets/request/index.ts b/feature/src/assets/request/index.ts index 5701e76..304345c 100644 --- a/feature/src/assets/request/index.ts +++ b/feature/src/assets/request/index.ts @@ -21,4 +21,15 @@ export default { ); return res.data; }, + async getWorkerDetail() { + const res = await axios.get( + "https://gitee.com/monkeyWang/rubick-database/raw/master/plugins/worker.json" + ); + return res.data; + }, + + async getPluginDetail(url: string) { + const res = await axios.get(url); + return res.data; + }, }; diff --git a/feature/src/views/market/components/plugin-list.vue b/feature/src/views/market/components/plugin-list.vue index 71e793f..305845e 100644 --- a/feature/src/views/market/components/plugin-list.vue +++ b/feature/src/views/market/components/plugin-list.vue @@ -4,7 +4,7 @@