Commit 0ea6610c authored by “yiyousong”'s avatar “yiyousong”

feat:跳转业务系统新增数据

parent 54b8e328
......@@ -52,14 +52,21 @@ export default {
let res = await appsListInterface({ siteId: this.siteId });
let { data } = res.data;
this.siteModelList = data;
console.log(data);
},
openWindow(href) {
let token = Storage.get(2, "Authorization");
let siteid = Storage.get(2, "siteId");
let reg = /^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+/;
let info = Storage.get(2, "userInfo");
let userInfo = JSON.stringify({
id: info.id,
name: info.loginName,
});
if (reg.test(href)) {
window.open(`${href}?token=${token}&siteid=${siteid}`, "_blank");
window.open(
`${href}?token=${token}&siteid=${siteid}&userInfo=${userInfo}`,
"_blank"
);
}
},
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment