mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-28 00:00:15 +00:00
feat: Keep Website List Order Stable After Editing (#13424)
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user