Commit 833601d9 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化

parent 729a78f4
......@@ -166,7 +166,6 @@ export default {
}
},
async openWindow(event, row, type) {
let _this = this;
let siteid = Storage.get(2, "siteId") || 0;
let siteName = Storage.get(2, "siteName") || "";
let userInfo = JSON.stringify({
......@@ -175,10 +174,10 @@ export default {
});
let { modelUrl, modelName, modelIcon } = row;
let path = this.$route.path;
modelName = encodeURI(modelName);
let compileModelName = encodeURI(modelName);
let params = `?token=${this.token}&siteid=${siteid}&siteName=${encodeURI(
siteName
)}&userInfo=${userInfo}&sysName=${modelName}&sysLogo=${modelIcon}&path=${path}`;
)}&userInfo=${userInfo}&sysName=${compileModelName}&sysLogo=${modelIcon}&path=${path}`;
if (type === "click") {
window.open(`${modelUrl}${params}`, "_blank");
return;
......@@ -205,7 +204,7 @@ export default {
duration: null,
description: (
<div>
<div class="notif-name">完整链接:</div>
<div class="notif-name">{modelName}-完整链接:</div>
<div>{redirectUrl + params}</div>
<div class="notif-name">链接参数:</div>
<div>{params}</div>
......
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