新增预加载
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user