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 GitHub
parent d5669352ed
commit f3ebc11b3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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