diff --git a/src/api/modules/mapCommon.ts b/src/api/modules/mapCommon.ts new file mode 100644 index 0000000..76a18f5 --- /dev/null +++ b/src/api/modules/mapCommon.ts @@ -0,0 +1,20 @@ +import { ResPage, User } from "@/api/types/common"; +// import { BASEURL } from "@/api/config/servicePort"; +import http from "@/api"; +import axios from "axios"; + +const BASEURL = import.meta.env.VITE_API_URL; +// const BASEURL1 = import.meta.env.VITE_API_URL + "6868"; + +/** + * @name 公共的模块统一抽离api + */ + +// 查询系统配置 +export const getSystemConfig = (params: any) => { + return http.post(BASEURL + `/xmgl/systemConfig/queryByKey`, params); +}; +// 修改系统配置 +export const updateSystemConfig = (params: any) => { + return http.post(BASEURL + `/xmgl/systemConfig/edit`, params); +}; diff --git a/src/assets/json/dynamicRouter.json b/src/assets/json/dynamicRouter.json index cf496e6..8a7d591 100644 --- a/src/assets/json/dynamicRouter.json +++ b/src/assets/json/dynamicRouter.json @@ -18,7 +18,7 @@ { "path": "/config", "name": "config", - "component": "/goverment/unmannedVideo/accessSituation/index", + "component": "/jxjview/configManagement/index", "meta": { "icon": "leftGover", "title": "配置中心", diff --git a/src/layouts/LayoutClassic/index.vue b/src/layouts/LayoutClassic/index.vue index 0ca994a..9ad80ba 100644 --- a/src/layouts/LayoutClassic/index.vue +++ b/src/layouts/LayoutClassic/index.vue @@ -13,7 +13,7 @@ - +