From 70aed0e6d10ed4f1ea93d565d49c864ad26041cc Mon Sep 17 00:00:00 2001 From: odboy Date: Thu, 5 Dec 2024 19:34:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=85=8D=E7=BD=AE=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/config/configFile.js | 9 +++++++++ src/api/config/{base => }/configUser.js | 0 src/views/config/app/index.vue | 27 +++++++++++++++++++++++++ src/views/config/file/index.vue | 27 +++++++++++++++++++++++++ vue.config.js | 4 ++-- 5 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 src/api/config/configFile.js rename src/api/config/{base => }/configUser.js (100%) create mode 100644 src/views/config/app/index.vue create mode 100644 src/views/config/file/index.vue diff --git a/src/api/config/configFile.js b/src/api/config/configFile.js new file mode 100644 index 0000000..32c4f8e --- /dev/null +++ b/src/api/config/configFile.js @@ -0,0 +1,9 @@ +import request from '@/utils/requestDevops' + +export function queryPage(data) { + return request({ + url: 'kenaito-config/configFile/queryPage', + method: 'post', + data: data + }) +} diff --git a/src/api/config/base/configUser.js b/src/api/config/configUser.js similarity index 100% rename from src/api/config/base/configUser.js rename to src/api/config/configUser.js diff --git a/src/views/config/app/index.vue b/src/views/config/app/index.vue new file mode 100644 index 0000000..6d53bd9 --- /dev/null +++ b/src/views/config/app/index.vue @@ -0,0 +1,27 @@ + + + + diff --git a/src/views/config/file/index.vue b/src/views/config/file/index.vue new file mode 100644 index 0000000..aa20b18 --- /dev/null +++ b/src/views/config/file/index.vue @@ -0,0 +1,27 @@ + + + + diff --git a/vue.config.js b/vue.config.js index 6fe972a..6753c01 100644 --- a/vue.config.js +++ b/vue.config.js @@ -42,12 +42,12 @@ module.exports = { } }, // 参照 src/api/config/productLine.js - // 当请求地址以/kenaito-config/开头时,转变为 target + '/api/config' + 除'/kenaito-config'以外的路径 + // 当请求地址以/kenaito-config/开头时,转变为 target + '/api/configFile' + 除'/kenaito-config'以外的路径 '/kenaito-config/': { target: process.env.VUE_APP_DEVOPS_BASE_API, changeOrigin: true, pathRewrite: { - '^/kenaito-config': '/api/config' + '^/kenaito-config': '/api/configFile' } } }