xushiting 2 years ago
parent
commit
81456a9ab6
1 changed files with 5 additions and 1 deletions
  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;