|
@@ -32,7 +32,7 @@ import { Mode } from "@/constant/mode.ts";
|
|
|
import { lineLen } from "@/utils/math.ts";
|
|
|
import { repTabulationStore } from "../tabulation/gen-tab.ts";
|
|
|
import { router } from "../../router.ts";
|
|
|
-import { overviewId, tabulationId } from "@/example/env.ts";
|
|
|
+import { overviewId, params, tabulationId } from "@/example/env.ts";
|
|
|
import { listener } from "@/utils/event.ts";
|
|
|
import { repeatedlyOnly } from "@/utils/shared.ts";
|
|
|
|
|
@@ -163,7 +163,7 @@ const saveHandler = repeatedlyOnly(async () => {
|
|
|
proportion: { ...draw.store.config.proportion, scale },
|
|
|
};
|
|
|
|
|
|
- console.log(cover);
|
|
|
+ console.log({ ...storeData.config.compass });
|
|
|
tabulationId.value = await window.platform.getTabulationId(overviewId.value);
|
|
|
await refreshTabulationData();
|
|
|
const tabStore = await repTabulationStore(
|
|
@@ -194,8 +194,11 @@ onUnmounted(
|
|
|
|
|
|
const gotoTabulation = repeatedlyOnly(async () => {
|
|
|
await saveHandler();
|
|
|
- console.log("跳转tab");
|
|
|
- router.push({ ...router.currentRoute.value, name: "tabulation" } as any);
|
|
|
+ router.push({
|
|
|
+ ...router.currentRoute.value,
|
|
|
+ name: "tabulation",
|
|
|
+ query: params.value,
|
|
|
+ } as any);
|
|
|
});
|
|
|
|
|
|
defineExpose({ gotoTabulation, saveHandler });
|