数据切换到正式环境
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user