haojianlong il y a 3 ans
Parent
commit
c1d66ab75e
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      src/views/ready/buildfloor/repetitionGraphy.vue

+ 4 - 2
src/views/ready/buildfloor/repetitionGraphy.vue

@@ -191,7 +191,6 @@ export default {
     // 替换模型文件成功
     refresh(modelId,pa) {
       this.modelId = modelId
-      this.currentModelId = pa.id;
       this.hasGraph = true;
       const temp = this.modelId.split('.');
       if (temp[1]) {
@@ -202,7 +201,10 @@ export default {
         }
       } else {
         this.key = '';
-        pa && pa.id && this.getFileName(pa.id)
+        if (pa && pa.id) {
+          this.getFileName(pa.id)
+          this.currentModelId = pa.id;
+        }
         this.initFromModelId(this.modelId)
       }
     },