提交 77f2a919 编写于 作者: Cano1997's avatar Cano1997

update: 添加重定向白名单校验

上级 53ca4bcf
...@@ -3,7 +3,7 @@ import { Vue, Component, Prop, Provide, Emit, Watch, Model,Inject } from 'vue-pr ...@@ -3,7 +3,7 @@ import { Vue, Component, Prop, Provide, Emit, Watch, Model,Inject } from 'vue-pr
import { CreateElement } from 'vue'; import { CreateElement } from 'vue';
import { Subject, Subscription } from 'rxjs'; import { Subject, Subscription } from 'rxjs';
import { ControlInterface } from '@/interface/control'; import { ControlInterface } from '@/interface/control';
import { UIActionTool,Util,ViewTool } from '@/utils'; import { safeRedirect, UIActionTool,Util,ViewTool } from '@/utils';
import NavDataService from '@/service/app/navdata-service'; import NavDataService from '@/service/app/navdata-service';
import AppCenterService from "@service/app/app-center-service"; import AppCenterService from "@service/app/app-center-service";
<#if ctrl.getPSAppCounterRefs?? && ctrl.getPSAppCounterRefs()??> <#if ctrl.getPSAppCounterRefs?? && ctrl.getPSAppCounterRefs()??>
......
...@@ -7,5 +7,5 @@ ...@@ -7,5 +7,5 @@
public click${item.codeName}(item: any = {}){ public click${item.codeName}(item: any = {}){
const localdata: any = this.$store.getters.getLocalData(); const localdata: any = this.$store.getters.getLocalData();
const url = `${item.getHtmlPageUrl()}`; const url = `${item.getHtmlPageUrl()}`;
window.open(url, '_blank'); safeRedirect(url, { type: '_blank'});
} }
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册