解决首页 indexmin 页面ts爆红

解决首页 indexmin 页面ts爆红
This commit is contained in:
TimSpan 2024-08-08 17:20:41 +08:00
parent 5e7f29b79b
commit ca78a54090
2 changed files with 1082 additions and 1063 deletions

View File

@ -673,7 +673,7 @@ const gettree4 = (data: any) => {
name: localStorage.getItem('loginname'),
industry: data,
})
.then((res) => {
.then((res: JsonResult<any>) => {
if (res.code == 0) {
api
.post('/multialarm/client/alarm_point/getlist', {
@ -686,7 +686,8 @@ const gettree4 = (data: any) => {
})
let data = [res.data]
data.forEach((tree) => {
console.log(tree)
console.log('tree______', tree)
tree.children.reverse() //
printLeafs(tree, res1.data)
})
treedataall.value = [...data]

File diff suppressed because it is too large Load Diff