fix: 修复做题页面提交reload页面 (#419)
Co-authored-by: jiangchunfu <jiangchunfu@kaike.la> Co-authored-by: sudoooooo <zjbbabybaby@gmail.com>
This commit is contained in:
parent
930976f67e
commit
602f8f4b73
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user