-
+
+
\ No newline at end of file
diff --git a/front/src/stores/floorplan.ts b/front/src/stores/floorplan.ts
index a59e6c6..eae29f3 100644
--- a/front/src/stores/floorplan.ts
+++ b/front/src/stores/floorplan.ts
@@ -4,7 +4,8 @@ import { SERVER_URL } from '../constants'
export const useFloorplanStore = defineStore('floorplan', {
state: () => {
return {
- // for initially empty lists
+ title: undefined,
+ np_array: [] as number[][]
}
},
actions: {
@@ -12,22 +13,11 @@ export const useFloorplanStore = defineStore('floorplan', {
try {
const res = await fetch(`${SERVER_URL}/api/floorplan`)
const data = await res.json()
- if (data.length) {
- // this.list = data
- }
+ this.title = data.title
+ this.np_array = data.np_field
} catch (error) {
// this.list = []
}
},
}
-})
-
-export interface ProductInfo {
- id: number
- title: string
- description: string
- model3d?: string
- image1?: string
- image2?: string
- image3?: string
-}
\ No newline at end of file
+})
\ No newline at end of file