fix: gretting page

This commit is contained in:
zzc
2026-02-03 11:01:58 +08:00
parent 82fc0f80a5
commit ad40704642
2 changed files with 21 additions and 10 deletions

View File

@@ -433,7 +433,7 @@ const cardId = ref("");
// 标题相关
const titles = ref([]);
const currentTitle = ref(null);
const currentTitle = ref(titles.value[0]);
const titlePage = ref(1);
const loadingTitles = ref(false);
const hasMoreTitles = ref(true);
@@ -908,6 +908,7 @@ const selectTitle = (title) => {
currentTitle.value = null;
} else {
currentTitle.value = title;
// 切换标题时重置位置和缩放
titleState.value = {
offsetX: 0,
@@ -982,6 +983,7 @@ const shareOrSave = async (id) => {
blessingTo: targetName.value,
blessingFrom: signatureName.value,
templateId: currentTemplate.value?.id || "",
titleId: currentTitle?.value?.id || "",
});
};