|
@@ -134,14 +134,6 @@ onMounted(async () => {
|
|
|
const ids = (route.params.compareProjectId as string) || "";
|
|
|
compareProjectId = ids.split(",").map((item) => +item);
|
|
|
viewType = route.params.viewType as string;
|
|
|
-
|
|
|
- if (viewType !== "frame") {
|
|
|
- const key = window.location.href.split("?")[1];
|
|
|
- if (!key) return;
|
|
|
- let keyVal = window.atob(key);
|
|
|
- let user = JSON.parse(keyVal);
|
|
|
- store.setUserInfo(user);
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
await fetchData();
|
|
@@ -149,8 +141,6 @@ onMounted(async () => {
|
|
|
await nextTick();
|
|
|
|
|
|
commonInfoUpdate();
|
|
|
-
|
|
|
- if (viewType === "print") publishReady();
|
|
|
} catch (error) {
|
|
|
console.error(error);
|
|
|
|
|
@@ -202,16 +192,6 @@ function commonInfoUpdate() {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-function publishReady() {
|
|
|
- const eventEmitInterval = setInterval(function () {
|
|
|
- document.body.dispatchEvent(new Event("view-ready"));
|
|
|
- }, 25);
|
|
|
-
|
|
|
- document.body.addEventListener("view-ready-acknowledged", function () {
|
|
|
- clearInterval(eventEmitInterval);
|
|
|
- });
|
|
|
-}
|
|
|
-
|
|
|
function numberPrecision(num: number) {
|
|
|
return Math.round(num * 100) / 100;
|
|
|
}
|