|
@@ -28,6 +28,7 @@ import UiGather from "@/components/UIGather/";
|
|
|
import LoadingLogo from "@/components/assembly/Loading";
|
|
|
import Opening from "@/components/assembly/Opening";
|
|
|
import { createApp } from "@/app";
|
|
|
+import { Dialog } from "@/global_components";
|
|
|
|
|
|
import { ref, onMounted, computed, watch, nextTick, unref } from "vue";
|
|
|
import { getPanoInfo, checkWork, exchangeId } from "@/apis";
|
|
@@ -66,15 +67,19 @@ onMounted(async () => {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- if (!config.projectNum) {
|
|
|
- return;
|
|
|
- }
|
|
|
const idRes = await exchangeId({
|
|
|
id: config.projectNum
|
|
|
})
|
|
|
- const { id, num } = idRes.data
|
|
|
+ const { id, num, calcStatus } = idRes.data
|
|
|
config.projectNum = id
|
|
|
|
|
|
+ if (calcStatus === 0) {
|
|
|
+ Dialog.alert(
|
|
|
+ '场景计算中,请稍后访问'
|
|
|
+ );
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
let res = await checkWork();
|
|
|
|
|
|
if (!res.data) {
|