diff --git a/portal-manager-ui/admin/src/views/siteArrange/siteArrange.vue b/portal-manager-ui/admin/src/views/siteArrange/siteArrange.vue index 6622df50b792be535d88c5dc34623100d9a6f23b..d1a1a42b4fa6acbcdcc9b77d55c44c6d23901395 100644 --- a/portal-manager-ui/admin/src/views/siteArrange/siteArrange.vue +++ b/portal-manager-ui/admin/src/views/siteArrange/siteArrange.vue @@ -185,18 +185,18 @@ export default { if (this.userData.admin || this.userData.id == 1) { event.preventDefault(); - let redirectUrl = ""; - let hash = ""; - let redirect = await this.getFinalRedirect(modelUrl); - if (!modelUrl.includes("http")) { - let index = modelUrl.indexOf("/"); - hash = modelUrl.slice(index + 1); - } - if (redirect) { - redirectUrl = redirect + hash; - } else { - redirectUrl = modelUrl; - } + // let redirectUrl = ""; + // let hash = ""; + // let redirect = await this.getFinalRedirect(modelUrl); + // if (!modelUrl.includes("http")) { + // let index = modelUrl.indexOf("/"); + // hash = modelUrl.slice(index + 1); + // } + // if (redirect) { + // redirectUrl = redirect + hash; + // } else { + // redirectUrl = modelUrl; + // } this.$notification.open({ message: "璺宠浆閾炬帴", @@ -205,7 +205,7 @@ export default { description: ( <div> <div class="notif-name">{modelName}-瀹屾暣閾炬帴锛�</div> - <div>{redirectUrl + params}</div> + <div>{modelUrl + params}</div> <div class="notif-name">閾炬帴鍙傛暟锛�</div> <div>{params}</div> </div> @@ -275,19 +275,19 @@ export default { }, // 鑾峰彇閲嶅畾鍚戝湴鍧€ - getFinalRedirect(url) { - return fetch(url, { method: "GET", redirect: "follow" }) - .then((response) => { - if (!response.ok) { - throw new Error("Network response was not ok"); - } - return response.url; - }) - .catch((error) => { - console.error("Error:", error); - return null; - }); - }, + // getFinalRedirect(url) { + // return fetch(url, { method: "GET", redirect: "follow" }) + // .then((response) => { + // if (!response.ok) { + // throw new Error("Network response was not ok"); + // } + // return response.url; + // }) + // .catch((error) => { + // console.error("Error:", error); + // return null; + // }); + // }, }, }; </script>