|
@@ -14,6 +14,7 @@ import { params } from "@/env";
|
|
|
import { fuseModel, modelProps } from "./index";
|
|
|
import { modelSDKFactory } from "./platform";
|
|
|
import { getToken } from "@/api";
|
|
|
+import { offlinePrev } from "@/api/offline";
|
|
|
|
|
|
const typeChange = () => {
|
|
|
const oldType = modelProps.type;
|
|
@@ -61,13 +62,13 @@ export const Model = defineComponent({
|
|
|
const type = scene.value.type;
|
|
|
const urls = offline
|
|
|
? {
|
|
|
- [SceneType.SWKK]: `/swkk/${scene.value.num}/wwwroot/spg.html?m=${scene.value.num}&lang=zh`,
|
|
|
- [SceneType.SWKJ]: `/swkk/${scene.value.num}/wwwroot/spg.html?m=${scene.value.num}&lang=zh`,
|
|
|
- [SceneType.SWSS]: `/swss/${scene.value.num}/www/offline.html?m=${scene.value.num}&lang=zh`,
|
|
|
- [SceneType.SWSSMX]: `/swkk/${scene.value.num}/wwwroot/spg.html?m=${scene.value.num}&lang=zh`,
|
|
|
+ [SceneType.SWKK]: `${offlinePrev}/swkk/${scene.value.num}/wwwroot/spg.html?m=${scene.value.num}&lang=zh`,
|
|
|
+ [SceneType.SWKJ]: `${offlinePrev}/swkk/${scene.value.num}/wwwroot/spg.html?m=${scene.value.num}&lang=zh`,
|
|
|
+ [SceneType.SWSS]: `${offlinePrev}/swss/${scene.value.num}/www/offline.html?m=${scene.value.num}&lang=zh`,
|
|
|
+ [SceneType.SWSSMX]: `${offlinePrev}/swkk/${scene.value.num}/wwwroot/spg.html?m=${scene.value.num}&lang=zh`,
|
|
|
[SceneType.SWMX]: `offline.html?caseId=${params.caseId}&modelId=${scene.value.num}&share=1#sign-model`,
|
|
|
- [SceneType.SWYDSS]: `/swss/${scene.value.num}/www/offline.html?m=${scene.value.num}&lang=zh`,
|
|
|
- [SceneType.SWYDMX]: `/swkk/${scene.value.num}/wwwroot/spg.html?m=${scene.value.num}&lang=zh`,
|
|
|
+ [SceneType.SWYDSS]: `${offlinePrev}/swss/${scene.value.num}/www/offline.html?m=${scene.value.num}&lang=zh`,
|
|
|
+ [SceneType.SWYDMX]: `${offlinePrev}/swkk/${scene.value.num}/wwwroot/spg.html?m=${scene.value.num}&lang=zh`,
|
|
|
}
|
|
|
: {
|
|
|
[SceneType.SWKK]: `/swkk/spg.html?m=${scene.value.num}`,
|