diff --git a/web_src/vuepages/pages/modelmanage/common/modelmanage-common-detail.vue b/web_src/vuepages/pages/modelmanage/common/modelmanage-common-detail.vue index 0bb4dc70c..e08b09ed1 100644 --- a/web_src/vuepages/pages/modelmanage/common/modelmanage-common-detail.vue +++ b/web_src/vuepages/pages/modelmanage/common/modelmanage-common-detail.vue @@ -271,12 +271,14 @@ export default { label: item.FileName, path: item.FileName }); - this.getDirFiles(item.FileName); + const dir = this.filePath.map((item) => item.path).join('/'); + this.getDirFiles(dir); }, goBackDir(item) { const index = this.filePath.findIndex(pth => item === pth); this.filePath = this.filePath.slice(0, index + 1); - this.getDirFiles(item.path); + const dir = this.filePath.map((item) => item.path).join('/'); + this.getDirFiles(dir); }, changeVersion(version, noFileRefresh) { const data = this.modelList.filter((model) => model.version == version)[0]; @@ -408,7 +410,8 @@ export default { setTimeout(() => { this.loading = false; this.updateModelInfo(); - this.getDirFiles(this.filePath[this.filePath.length - 1].path); + const dir = this.filePath.map((item) => item.path).join('/'); + this.getDirFiles(dir); }, 30); } else { this.loading = false;