数据切换到正式环境

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

@@ -249,7 +249,7 @@ export default {
return {
name: item.name,
extname: 'img',
url: item.filePath,
url: this.$config.static + item.filePath,
...item,
}
})
@@ -297,6 +297,9 @@ export default {
}, 1000)
console.log(option.project)
this.project = JSON.parse(decodeURIComponent(option.project))
this.project.topologyDiagramPaths.forEach(item=>{
item.filePath = this.$config.static + item.filePath
})
this.init()
// uni.setNavigationBarTitle({ title: this.project })
},

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,