|
@@ -8,14 +8,14 @@ import { del, get, post, put } from '../axios/tools';
|
|
|
* @param headers
|
|
|
* @returns {Promise<unknown>}
|
|
|
*/
|
|
|
-export const configQueryConfigList = ({ params, headers = {} }) => get({ url: '/v1/property/config', params, headers });
|
|
|
+export const configQueryConfigList = ({ params, headers = {} }) => get({ url: 'config/v1/property/config', params, headers });
|
|
|
|
|
|
/**
|
|
|
* 添加属性配置
|
|
|
* @param data
|
|
|
* @returns {Promise<unknown>}
|
|
|
*/
|
|
|
-export const configAddConfig = (data) => post({ url: '/v1/property/config', data });
|
|
|
+export const configAddConfig = (data) => post({ url: 'config/v1/property/config', data });
|
|
|
|
|
|
/**
|
|
|
* 编辑配置项
|
|
@@ -24,7 +24,7 @@ export const configAddConfig = (data) => post({ url: '/v1/property/config', data
|
|
|
* @returns {Promise<AxiosResponse<any>|never>}
|
|
|
*/
|
|
|
export function configEditConfig({ id, data }) {
|
|
|
- return put({ url: `/v1/property/config/${id}`, data });
|
|
|
+ return put({ url: `config/v1/property/config/${id}`, data });
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -33,5 +33,5 @@ export function configEditConfig({ id, data }) {
|
|
|
* @returns {Promise<unknown>}
|
|
|
*/
|
|
|
export function configDelConfig(id) {
|
|
|
- return del({ url: `/v1/property/config/${id}` });
|
|
|
+ return del({ url: `config/v1/property/config/${id}` });
|
|
|
}
|