|
@@ -1,5 +1,5 @@
|
|
|
import { stackFactory, flatStacksValue, strToParams } from "@/utils";
|
|
|
-import { reactive, ref } from "vue";
|
|
|
+import { reactive, ref, watch, watchEffect } from "vue";
|
|
|
|
|
|
import type { FuseModel, Path, TaggingPosition, View } from "@/store";
|
|
|
export const namespace = "/fusion";
|
|
@@ -62,9 +62,10 @@ export const custom = flatStacksValue({
|
|
|
showMode: showModeStack,
|
|
|
showSearch: showSearchStack,
|
|
|
showViewSetting: showViewSettingStack,
|
|
|
- full: showFullStack
|
|
|
+ full: showFullStack,
|
|
|
});
|
|
|
|
|
|
+export const paramsRaw = strToParams(location.search) as unknown as Params
|
|
|
export const params = reactive(
|
|
|
strToParams(location.search)
|
|
|
) as unknown as Params;
|
|
@@ -72,11 +73,10 @@ params.caseId = Number(params.caseId);
|
|
|
params.share = Boolean(Number(params.share));
|
|
|
params.single = Boolean(Number(params.single));
|
|
|
|
|
|
-
|
|
|
export type Params = {
|
|
|
caseId: number;
|
|
|
baseURL?: string;
|
|
|
- pure?: boolean
|
|
|
+ pure?: boolean;
|
|
|
modelId?: string;
|
|
|
mapKey?: string;
|
|
|
mapPlatform?: string;
|
|
@@ -103,10 +103,10 @@ export const getResource = (uri: string) => {
|
|
|
return `${baseURL}/${uri}`;
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-if (params.pure) {
|
|
|
- showFullStack.current.value.value = true
|
|
|
- console.error()
|
|
|
-}
|
|
|
+watch(
|
|
|
+ () => params.pure || false,
|
|
|
+ (pure, _, onCleanup) => {
|
|
|
+ onCleanup(showFullStack.push(ref(pure)));
|
|
|
+ },
|
|
|
+ { immediate: true }
|
|
|
+);
|