fix: tab icon
This commit is contained in:
@@ -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] || {};
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user