fix: id in payload

This commit is contained in:
2025-11-29 08:45:02 +08:00
parent 8e3273d8f1
commit 40e0bfee4c
10 changed files with 34 additions and 16 deletions

View File

@@ -141,7 +141,9 @@ export const PreviewWrapper = () => {
const res = await query.post<any, any>({
path: 'container',
key: 'get',
id,
payload: {
id,
}
});
if (res.code === 200) {
const data = res.data;

View File

@@ -81,7 +81,9 @@ export const useContainerStore = create<ContainerStore>((set, get) => {
const res = await query.post({
path: 'container',
key: 'delete',
id,
payload: {
id,
},
});
if (res.code === 200) {
getList();
@@ -97,7 +99,9 @@ export const useContainerStore = create<ContainerStore>((set, get) => {
const res = await query.post({
path: 'container',
key: 'get',
id,
payload: {
id,
}
});
set({ loading: false });
if (res.code === 200) {