新增预加载

This commit is contained in:
2025-01-20 18:13:29 +08:00
parent cf2f362c98
commit b220d451ae
4 changed files with 108 additions and 87 deletions

View File

@@ -7,7 +7,7 @@ import { useMainStore } from "@/store";
import { subAnswer } from "@/api";
// 页面配置初始化
const emit = defineEmits(["hide", "showResult"]);
const emit = defineEmits(["hide", "showResult","QuestionPage"]);
const userStore = useMainStore();
const props = defineProps({
@@ -88,7 +88,7 @@ const viewResult = (event) => {
Toast.clear()
gsap.to('.QuestionPage', {
duration: 0.5, autoAlpha: 0, onComplete: () => {
emit("QuestionPage", { action: "showResult" });
emit("showResult", { action: "showResult" });
}
})
}, 1000)