refactor: handle status
This commit is contained in:
parent
fa9b59680f
commit
ed6a0cee3d
6 changed files with 23 additions and 15 deletions
|
|
@ -164,7 +164,7 @@ const useProductServiceStore = defineStore('api-product-service', () => {
|
|||
list: { url: string; imgFile: File | null; name: string }[];
|
||||
},
|
||||
) {
|
||||
const { image, status, ...payload } = data;
|
||||
const { image, ...payload } = data;
|
||||
|
||||
const res = await api.post<ProductCreate>('/product', {
|
||||
...payload,
|
||||
|
|
@ -271,7 +271,7 @@ const useProductServiceStore = defineStore('api-product-service', () => {
|
|||
list: { url: string; imgFile: File | null; name: string }[];
|
||||
},
|
||||
) {
|
||||
const { image, status, ...payload } = data;
|
||||
const { image, ...payload } = data;
|
||||
|
||||
const res = await api.post<ServiceCreate & { imageUploadUrl: string }>(
|
||||
'/service',
|
||||
|
|
|
|||
|
|
@ -232,6 +232,7 @@ export interface ProductGroupCreate {
|
|||
code: string;
|
||||
shared?: boolean;
|
||||
registeredBranchId: string;
|
||||
status?: Status;
|
||||
}
|
||||
|
||||
export interface ProductGroupUpdate {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue