fix: 修复做题页面提交reload页面 (#419)

Co-authored-by: jiangchunfu <jiangchunfu@kaike.la>
Co-authored-by: sudoooooo <zjbbabybaby@gmail.com>
This commit is contained in:
Jiangchunfu 2024-09-23 12:29:50 +08:00 committed by sudoooooo
parent 930976f67e
commit 602f8f4b73

View File

@ -14,8 +14,8 @@ const surveyStore = useSurveyStore()
watch( watch(
() => route.query.t, () => route.query.t,
() => { (t) => {
location.reload() if (t) location.reload()
} }
) )
@ -62,6 +62,7 @@ const loadData = (res: any, surveyPath: string) => {
throw new Error(res.errmsg) throw new Error(res.errmsg)
} }
} }
const getDetail = async (surveyPath: string) => { const getDetail = async (surveyPath: string) => {
const alert = useCommandComponent(AlertDialog) const alert = useCommandComponent(AlertDialog)