feat(enterprise): 添加修改企业名称功能

- 在 API 中新增 updateEnterpriseName 方法,用于更新企业名称
- 在路由中添加企业信息管理相关路径
- 实现企业信息页面,包括展示企业和修改企业名称的功能
- 新增 Modal组件用于弹窗展示
This commit is contained in:
2025-06-18 18:00:33 +08:00
parent a6f6cd8bff
commit 9de7565b2d
5 changed files with 201 additions and 0 deletions

View File

@ -111,3 +111,8 @@ export const fetchSuccessCaseList = () => {
export const trialProduct = (id: number) => {
return Http.post(`/v1/products/${id}/try`, {}, { headers: { 'enterprise-id': 1 } });
};
// 修改企业名称
export const updateEnterpriseName = (data: any) => {
return Http.patch(`/v1/enterprises/name`, data, { headers: { 'enterprise-id': 1 } });
};

View File

@ -77,6 +77,10 @@ export class Request {
public delete<T = any>(url: string, config?: AxiosRequestConfig): Promise<T> {
return this.instance.delete(url, config);
}
public patch<T = any>(url: string, data?: any, config?: AxiosRequestConfig): Promise<T> {
return this.instance.patch(url, data, config);
}
}
//* 默认导出Request实例