diff --git a/jeecgboot-vue3-master/src/api/sys/user.ts b/jeecgboot-vue3-master/src/api/sys/user.ts index bfc93a61..20259eaf 100644 --- a/jeecgboot-vue3-master/src/api/sys/user.ts +++ b/jeecgboot-vue3-master/src/api/sys/user.ts @@ -44,6 +44,25 @@ enum Api { getLoginQrcode = '/sys/getLoginQrcode', //监控二维码扫描状态 getQrcodeToken = '/sys/getQrcodeToken', + path = '/online/cgform/head/rootFile', + pathTree = '/online/cgform/head/fileTree', + dataList = '/sysconfiguration/sysConfiguration/list', + updPath = '/sysconfiguration/sysConfiguration/add', +} + +export function getPathApi() { + return defHttp.get({ url: Api.path }); +} +export function getPathTreeApi(parentPath: string) { + return defHttp.get({ url: Api.pathTree, params: { parentPath } }); +} + +export function getDataListApi() { + return defHttp.get({ url: Api.dataList }); +} +type updPathPar = { name: string; logo: string; newsPage: string; recordNumber: string; copyright: string; certificate: string; composition: string } +export function updPathApi(params: updPathPar) { + return defHttp.post({ url: Api.updPath, params }); } /** diff --git a/jeecgboot-vue3-master/src/views/setPath/Modal.vue b/jeecgboot-vue3-master/src/views/setPath/Modal.vue index 05b7c3cb..f61cdef5 100644 --- a/jeecgboot-vue3-master/src/views/setPath/Modal.vue +++ b/jeecgboot-vue3-master/src/views/setPath/Modal.vue @@ -1,69 +1,64 @@ \ No newline at end of file diff --git a/jeecgboot-vue3-master/src/views/setPath/index.vue b/jeecgboot-vue3-master/src/views/setPath/index.vue index 0a3a4c94..7ae49489 100644 --- a/jeecgboot-vue3-master/src/views/setPath/index.vue +++ b/jeecgboot-vue3-master/src/views/setPath/index.vue @@ -1,43 +1,44 @@