mirror of
https://github.com/dataease/dataease.git
synced 2025-02-25 20:42:55 +08:00
Merge pull request #2692 from dataease/pr@dev@fix_panel-jump
refactor(仪表板): 优化仪表板外部链接跳转参数替换逻辑,防止出现未替换情况
This commit is contained in:
commit
caf018d582
@ -523,9 +523,9 @@ export default {
|
|||||||
on.forEach(itm => {
|
on.forEach(itm => {
|
||||||
const ele = itm.slice(1, -1)
|
const ele = itm.slice(1, -1)
|
||||||
if (name2Auto) {
|
if (name2Auto) {
|
||||||
name2Auto.push(nameIdMap[ele])
|
name2Auto.push(nameIdMap[itm])
|
||||||
}
|
}
|
||||||
name2Id = name2Id.replace(ele, nameIdMap[ele])
|
name2Id = name2Id.replace(itm, '[' + nameIdMap[ele] + ']')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return name2Id
|
return name2Id
|
||||||
|
Loading…
Reference in New Issue
Block a user