This commit is contained in:
陈红丽 2024-07-24 13:50:25 +08:00
parent a5597938f5
commit 670bac5de7
3 changed files with 32 additions and 1 deletions

View File

@ -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
});
}

19
src/api/setting/web.ts Normal file
View File

@ -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
});
}

View File

@ -12,7 +12,7 @@
:readonly="item.type == 'readonly'" />
</template>
<template v-else-if="item.type == 'number'">
<el-input-number v-model="formData[item.code]" :placeholder="`请输入${item.name}`" />
<el-input-number v-model="formData[item.code]" placeholder="请输入" />
</template>
<template v-else-if="item.type=='icon'">
<IconPicker class="flex-1" v-model="formData[item.code]"/>