diff --git a/src/api/system/config.ts b/src/api/system/config.ts index b86b0da..fb42cde 100644 --- a/src/api/system/config.ts +++ b/src/api/system/config.ts @@ -1,4 +1,3 @@ -// import request from "@/utils/request"; import request from "@/utils/request"; const CONFIG_BASE_URL = "/api/v1/config"; @@ -62,12 +61,8 @@ const ConfigAPI = { refreshCache() { return request({ - url: `${CONFIG_BASE_URL}`, - method: "POST", - header: { - "Content-Type": "application/json", - "X-HTTP-Method-Override": "PATCH", - }, + url: `${CONFIG_BASE_URL}/refresh`, + method: "PUT", }); }, }; diff --git a/src/pages.json b/src/pages.json index 94219a7..239921b 100644 --- a/src/pages.json +++ b/src/pages.json @@ -54,6 +54,18 @@ "style": { "navigationBarTitleText": "日志管理" } + }, + { + "path": "pages/work/system/config/config", + "style": { + "navigationBarTitleText": "系统配置" + } + }, + { + "path": "pages/work/system/config/item", + "style": { + "navigationBarTitleText": "配置详情" + } } ], "globalStyle": { diff --git a/src/pages/work/index.vue b/src/pages/work/index.vue index ab6fe46..03b9e17 100644 --- a/src/pages/work/index.vue +++ b/src/pages/work/index.vue @@ -51,6 +51,7 @@ const gridList = reactive([ { icon: "/static/icons/config.png", title: "系统配置", + url: "/pages/work/system/config/config", }, { icon: "/static/icons/notice.png", diff --git a/src/pages/work/system/config.vue b/src/pages/work/system/config.vue deleted file mode 100644 index 72c275e..0000000 --- a/src/pages/work/system/config.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - - - diff --git a/src/pages/work/system/config/config.vue b/src/pages/work/system/config/config.vue new file mode 100644 index 0000000..57df655 --- /dev/null +++ b/src/pages/work/system/config/config.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/pages/work/system/config/item.vue b/src/pages/work/system/config/item.vue new file mode 100644 index 0000000..f83e1b9 --- /dev/null +++ b/src/pages/work/system/config/item.vue @@ -0,0 +1,223 @@ + + + +