From 1a4a3f6898b504e591616be66386320d44261716 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 28 Jul 2022 15:19:10 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=AA=E8=A1=A8=E6=9D=BF=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=8B=BC=E6=8E=A5http=E9=80=BB=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E6=94=B9=E4=B8=BA=E8=B7=B3=E8=BD=AC=E6=97=B6=E5=88=BB?= =?UTF-8?q?=E5=86=8D=E8=BF=9B=E8=A1=8C=E6=A3=80=E6=9F=A5=E6=8B=BC=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/canvas/custom-component/UserView.vue | 5 ++++- frontend/src/views/panel/LinkJumpSet/index.vue | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/canvas/custom-component/UserView.vue b/frontend/src/components/canvas/custom-component/UserView.vue index 56b45d5e42..ef5975f605 100644 --- a/frontend/src/components/canvas/custom-component/UserView.vue +++ b/frontend/src/components/canvas/custom-component/UserView.vue @@ -128,6 +128,8 @@ import ChartComponentS2 from '@/views/chart/components/ChartComponentS2' import PluginCom from '@/views/system/plugin/PluginCom' import LabelNormalText from '@/views/chart/components/normal/LabelNormalText' import { viewPropsSave } from '@/api/chart/chart' +import { checkAddHttp } from '@/utils/urlUtils' + export default { name: 'UserView', components: { LabelNormalText, PluginCom, ChartComponentS2, EditBarView, ChartComponent, TableNormal, LabelNormal, DrillPath, ChartComponentG2 }, @@ -678,7 +680,8 @@ export default { } } else { const colList = [...param.dimensionList, ...param.quotaList] - const url = this.setIdValueTrans('id', 'value', jumpInfo.content, colList) + let url = this.setIdValueTrans('id', 'value', jumpInfo.content, colList) + url = checkAddHttp(url) window.open(url, jumpInfo.jumpType) } } else { diff --git a/frontend/src/views/panel/LinkJumpSet/index.vue b/frontend/src/views/panel/LinkJumpSet/index.vue index b05ea27d76..e64f89b917 100644 --- a/frontend/src/views/panel/LinkJumpSet/index.vue +++ b/frontend/src/views/panel/LinkJumpSet/index.vue @@ -236,7 +236,6 @@ import { queryPanelJumpInfo, queryWithViewId, updateJumpSet } from '@/api/panel/ import { groupTree } from '@/api/panel/panel' import { detailList } from '@/api/panel/panelView' import { mapState } from 'vuex' -import { checkAddHttp } from '@/utils/urlUtils' import draggable from 'vuedraggable' import { codemirror } from 'vue-codemirror' @@ -397,7 +396,6 @@ export default { }, save() { this.codemirrorShow = false - this.linkJumpInfo.content = checkAddHttp(this.linkJumpInfo.content) this.linkJumpInfoArray.forEach(jumpInfo => { jumpInfo.content = this.setNameIdTrans('sourceFieldName', 'sourceFieldId', jumpInfo.content) })