xushiting 2 tahun lalu
induk
melakukan
81456a9ab6
1 mengubah file dengan 5 tambahan dan 1 penghapusan
  1. 5 1
      src/graphic/Load.js

+ 5 - 1
src/graphic/Load.js

@@ -8,7 +8,11 @@ export default class Load {
     this.newVectorId = null;
   }
 
-  load(dataLocal, data3d) {}
+  load(dataLocal, data3d) {
+    if (dataLocal) {
+      dataService.vectorData = JSON.parse(JSON.stringify(dataLocal));
+    }
+  }
 
   save() {
     return dataService.vectorData;