|
@@ -51,13 +51,18 @@ const stopWatch = watch(currentLayout, async (layout) => {
|
|
|
}
|
|
|
|
|
|
params.share = true
|
|
|
- await refreshCase()
|
|
|
+ try {
|
|
|
+ await refreshCase()
|
|
|
if (caseProject.value) {
|
|
|
await loadPack(initialSetting)
|
|
|
prefix.value = caseProject.value!.caseTitle
|
|
|
} else {
|
|
|
await router.replace({name: RoutesName.error})
|
|
|
+ }
|
|
|
+ } catch (error) {
|
|
|
+ await router.replace({name: RoutesName.error})
|
|
|
}
|
|
|
+
|
|
|
stopWatch()
|
|
|
loaded.value = true
|
|
|
console.log(loaded.value)
|