|
@@ -79,13 +79,32 @@ const V4IframeUrl = computed(() => {
|
|
|
const v4Mi = process.env.VUE_APP_DEBBUG_V4_URL;
|
|
|
|
|
|
if (process.env.VUE_APP_DEBBUG_V4 == 1) {
|
|
|
- return `${v4Mi}/${unref(isMobile) ? "smg" : "spc"}.html?m=${
|
|
|
- unref(currentScene).sceneCode
|
|
|
- }&fromApp=panorama&lang=${unref(lang)}&rnd=${Math.floor(Math.random() * 100000)}`;
|
|
|
+ // 这里需要做离线包特殊处理
|
|
|
+ if(config.isOfflineMode) {
|
|
|
+ console.log("unref(currentScene)", unref(currentScene));
|
|
|
+ let version = unref(currentScene).version;
|
|
|
+ console.log("version", version);
|
|
|
+ return `${v4Mi}/${unref(isMobile)? "smg" : version && version == 'V4' ? "spg" : "spc"}.html?m=${
|
|
|
+ unref(currentScene).sceneCode
|
|
|
+ }&fromApp=panorama&lang=${unref(lang)}&rnd=${Math.floor(Math.random() * 100000)}`;
|
|
|
+ } else {
|
|
|
+ return `${v4Mi}/${unref(isMobile) ? "smg" : "spg"}.html?m=${
|
|
|
+ unref(currentScene).sceneCode
|
|
|
+ }&fromApp=panorama&lang=${unref(lang)}&rnd=${Math.floor(Math.random() * 100000)}`;
|
|
|
+ }
|
|
|
} else {
|
|
|
- return `/${unref(isMobile) ? "smg" : "spc"}.html?m=${
|
|
|
- unref(currentScene).sceneCode
|
|
|
- }&fromApp=panorama&lang=${unref(lang)}&rnd=${Math.floor(Math.random() * 100000)}`;
|
|
|
+ if(config.isOfflineMode) {
|
|
|
+ console.log("unref(currentScene)", unref(currentScene));
|
|
|
+ let version = unref(currentScene).version;
|
|
|
+ console.log("version", version);
|
|
|
+ return `/${unref(isMobile) ? "smg" : version && version == 'V4' ? "spg" : "spc"}.html?m=${
|
|
|
+ unref(currentScene).sceneCode
|
|
|
+ }&fromApp=panorama&lang=${unref(lang)}&rnd=${Math.floor(Math.random() * 100000)}`;
|
|
|
+ } else {
|
|
|
+ return `/${unref(isMobile) ? "smg" : "spg"}.html?m=${
|
|
|
+ unref(currentScene).sceneCode
|
|
|
+ }&fromApp=panorama&lang=${unref(lang)}&rnd=${Math.floor(Math.random() * 100000)}`;
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
|