提交
This commit is contained in:
parent
a5597938f5
commit
670bac5de7
12
src/api/setting/profile.ts
Normal file
12
src/api/setting/profile.ts
Normal 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
19
src/api/setting/web.ts
Normal 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
|
||||
});
|
||||
}
|
@ -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]"/>
|
||||
|
Loading…
Reference in New Issue
Block a user