feat: Keep Website List Order Stable After Editing (#13424)

This commit is contained in:
CityFun
2026-07-31 11:05:23 +08:00
committed by GitHub
parent e11dc5fadd
commit 7bd11fe73e
30 changed files with 651 additions and 172 deletions
+5 -1
View File
@@ -425,7 +425,11 @@ export const getTemplate = (id: number) => {
export const uploadTemplateZip = (file: globalThis.File) => {
const formData = new FormData();
formData.append('file', file);
return http.post<{ filePath: string; variables: string[] }>(`/websites/templates/upload`, formData, TimeoutEnum.T_5M);
return http.post<{ filePath: string; variables: string[] }>(
`/websites/templates/upload`,
formData,
TimeoutEnum.T_5M,
);
};
export const previewTemplate = (req: Website.PreviewReq) => {