|
|
@@ -50,7 +50,8 @@ const emit = defineEmits<{
|
|
|
(e: "saveAfter"): void;
|
|
|
}>();
|
|
|
|
|
|
-const showTabulation = !params.value.sceneDraw;
|
|
|
+// const showTabulation = !params.value.sceneDraw;
|
|
|
+const showTabulation = true;
|
|
|
const baseActions = getHeaderActions(draw);
|
|
|
const actions = [
|
|
|
[baseActions.undo, baseActions.redo],
|
|
|
@@ -306,11 +307,9 @@ const saveHandler = repeatedlyOnly(async () => {
|
|
|
|
|
|
console.log(tabStore);
|
|
|
tabStore.config.compass = storeData.config.compass;
|
|
|
-
|
|
|
- overviewId.value = await window.platform.saveOverviewData(overviewId.value, {
|
|
|
+ const body: any = {
|
|
|
...overviewData.value,
|
|
|
listCover: listUrl,
|
|
|
- kankanCover: kankanUrl,
|
|
|
store: storeData,
|
|
|
viewport: draw!.viewer.transform.m,
|
|
|
caseTabulation: {
|
|
|
@@ -321,7 +320,12 @@ const saveHandler = repeatedlyOnly(async () => {
|
|
|
store: tabStore,
|
|
|
overviewId: overviewId.value,
|
|
|
},
|
|
|
- });
|
|
|
+ };
|
|
|
+ if (window.platform.sceneDraw) {
|
|
|
+ body.kankanCover = kankanUrl;
|
|
|
+ }
|
|
|
+
|
|
|
+ overviewId.value = await window.platform.saveOverviewData(overviewId.value, body);
|
|
|
tabulationId.value = await window.platform.getTabulationId(overviewId.value);
|
|
|
console.log("保存完毕");
|
|
|
emit("saveAfter");
|