Merge pull request #10007 from dataease/pr@dev@fix_link

fix(仪表板): 修复部分模版创建可能出错问题
This commit is contained in:
王嘉豪 2024-05-31 16:53:30 +08:00 committed by GitHub
commit 4797a0b414
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,6 +27,7 @@ import { queryPanelJumpInfo, queryTargetPanelJumpInfo } from '@/api/panel/linkJu
import { getNowCanvasComponentData, panelInit } from '@/components/canvas/utils/utils'
import { getOuterParamsInfo } from '@/api/panel/outerParams'
import { mapState } from 'vuex'
import {Base64} from "js-base64";
export default {
name: 'LinkView',
@ -140,7 +141,7 @@ export default {
let attachParam = null
if (attachParamsEncode) {
const Base64 = require('js-base64').Base64
attachParam = JSON.parse(decodeURIComponent(Base64.decode(attachParamsEncode)))
attachParam = JSON.parse(Base64.decode(decodeURIComponent(attachParamsEncode)))
}
if (hasArgs) {
attachParam = Object.assign({}, attachParam, argsObject)