fix: id in payload
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user