This commit is contained in:
yanran200730
2021-12-08 09:08:36 +08:00
5 changed files with 64 additions and 12 deletions

View File

@@ -3,7 +3,7 @@
<template v-if="showDetail">
<form-detail/>
</template>
<ai-result v-else :tips="errMsg" status="error"/>
<ai-result v-else :tips="errMsg" :status="errStatus"/>
</section>
</template>
@@ -29,7 +29,11 @@ export default {
return !!this.$route.query?.id && this.access
},
errMsg() {
return this.err || (this.access ? "表单不存在" : "无法获取用户信息")
this.access && (this.err = "表单不存在")
return this.err || "数据读取中..."
},
errStatus() {
return !!this.err ? "error" : "loading"
},
isPreview() {
return !!this.$route.query?.preview
@@ -64,7 +68,7 @@ export default {
},
created() {
this.checkAccess()
document.title = "调查问卷"
document.title = "问卷调查"
}
}
</script>