diff --git a/src/api/setting/profile.ts b/src/api/setting/profile.ts new file mode 100644 index 0000000..8fbc156 --- /dev/null +++ b/src/api/setting/profile.ts @@ -0,0 +1,12 @@ +import { http } from '@/utils/http/axios'; + +/** + * @description: 更新用户信息 + */ +export function updateProfile(data:any) { + return http.request({ + url: '/index/updateProfile', + method: 'PUT', + data + }); +} diff --git a/src/api/setting/web.ts b/src/api/setting/web.ts new file mode 100644 index 0000000..b5748e4 --- /dev/null +++ b/src/api/setting/web.ts @@ -0,0 +1,19 @@ +import { http } from '@/utils/http/axios'; + +export function getWebInfo(params?) { + return http.request({ + url: '/config/web/index', + method: 'GET', + params, + }); +} +/** + * @description: 更新 + */ +export function updateWeb(data:any) { + return http.request({ + url: '/config/web/save', + method: 'POST', + data + }); +} diff --git a/src/views/setting/configWeb/BasicSetting.vue b/src/views/setting/configWeb/BasicSetting.vue index 7cb990c..93d9b56 100644 --- a/src/views/setting/configWeb/BasicSetting.vue +++ b/src/views/setting/configWeb/BasicSetting.vue @@ -12,7 +12,7 @@ :readonly="item.type == 'readonly'" />