From 5f267e77233da2b736f8b255bdb4dadebb222d37 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Sun, 30 May 2021 20:25:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=89=8D=E7=AB=AF=E8=BF=9C=E7=A8=8B?= =?UTF-8?q?=E5=BC=82=E6=AD=A5=E5=8A=A8=E6=80=81=E7=BB=84=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E6=B8=B2=E6=9F=93=E6=8F=92=E4=BB=B6=E6=A8=A1=E5=9D=97=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/system/dynamic.js | 22 +++++ frontend/src/views/system/plugin/dynamic.vue | 84 ++++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 frontend/src/api/system/dynamic.js create mode 100644 frontend/src/views/system/plugin/dynamic.vue diff --git a/frontend/src/api/system/dynamic.js b/frontend/src/api/system/dynamic.js new file mode 100644 index 0000000000..3ab521ed0e --- /dev/null +++ b/frontend/src/api/system/dynamic.js @@ -0,0 +1,22 @@ +import request from '@/utils/request' + +export function get(url) { + return request({ + url: url, + method: 'get' + }) +} + +export function execute(options) { + if (!options || !options.url) { + return null + } + options.type = options.type || 'post' + + return request({ + url: options.url, + method: options.type, + loading: true, + data: options.data + }) +} diff --git a/frontend/src/views/system/plugin/dynamic.vue b/frontend/src/views/system/plugin/dynamic.vue new file mode 100644 index 0000000000..dfdf6b3fa6 --- /dev/null +++ b/frontend/src/views/system/plugin/dynamic.vue @@ -0,0 +1,84 @@ + + + + +