数据切换到正式环境

This commit is contained in:
仲么了
2023-08-30 18:52:58 +08:00
parent d61a1614f9
commit 05b28a17e7
16 changed files with 116 additions and 75 deletions

View File

@@ -164,14 +164,19 @@ export default {
})
getTopoTemplate().then((res) => {
console.log(res)
this.tempList = res.data
this.tempList = res.data.map((item) => {
return {
...item,
filePath:this.$config.static + item.filePath
}
})
if (this.project) {
this.project.topologyDiagramPaths.forEach((item) => {
if (this.tempList.some((item2) => item2.id === item.topoId)) {
this.formData.tempFiles.push(item)
} else {
this.formData.files.push({
url: item.filePath,
url: this.$config.static + item.filePath,
extname: item.name.split('.')[1],
name: item.name,
...item,