fix: tab icon

This commit is contained in:
zzc
2026-01-22 23:54:56 +08:00
parent 3ecc525d2c
commit 1519c4f486
2 changed files with 156 additions and 2 deletions

View File

@@ -291,7 +291,12 @@ import {
getCardTemplateContentList,
} from "@/api/make";
import { createShareToken } from "@/api/system";
import { onShareAppMessage, onLoad, onReachBottom } from "@dcloudio/uni-app";
import {
onShareAppMessage,
onLoad,
onReachBottom,
onShow,
} from "@dcloudio/uni-app";
import { useUserStore } from "@/stores/user";
import LoginPopup from "@/components/LoginPopup/LoginPopup.vue";
@@ -396,6 +401,14 @@ onLoad((options) => {
getTemplateContentList();
});
onShow(() => {
const tempBlessing = uni.getStorageSync("TEMP_BLESSING_TEXT");
if (tempBlessing) {
blessingText.value = { content: tempBlessing, id: "" };
uni.removeStorageSync("TEMP_BLESSING_TEXT");
}
});
onReachBottom(() => {
if (activeTool.value === "template") {
loadMoreTemplates();
@@ -457,7 +470,9 @@ const getTemplateContentList = async () => {
if (res.length) {
greetingLib.value = res;
displayedGreetings.value = greetingLib.value.slice(0, 2);
blessingText.value = greetingLib.value[0] || {};
if (!blessingText.value.content) {
blessingText.value = greetingLib.value[0] || {};
}
}
};