|
@@ -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)
|
|
|
}
|
|
|
},
|