This commit is contained in:
parent
39c7754d5f
commit
bfa0571e0b
4 changed files with 400 additions and 17 deletions
|
|
@ -41,7 +41,7 @@ export const useProperty = defineStore('property-store', () => {
|
|||
return res;
|
||||
}
|
||||
|
||||
async function editProperty(data: Property & { id: string }) {
|
||||
async function editProperty(data: Property) {
|
||||
const res = await api.put<Property>(`/property/${data.id}`, {
|
||||
...data,
|
||||
id: undefined,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
import { Status } from '../types';
|
||||
|
||||
export type Property = {
|
||||
id?: string;
|
||||
name: string;
|
||||
nameEN: string;
|
||||
type: Record<string, any>;
|
||||
status?: Status;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue