清理部分冗余数据
This commit is contained in:
@@ -3,32 +3,27 @@
|
||||
<template v-if="showDetail">
|
||||
<form-detail/>
|
||||
</template>
|
||||
<ai-loading v-else :tips="errMsg"/>
|
||||
<ai-result v-else :tips="errMsg" status="error"/>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import AiLoading from "../../components/AiLoading";
|
||||
import {mapState} from "vuex";
|
||||
import FormDetail from "./formDetail";
|
||||
import AiResult from "../../components/AiResult";
|
||||
|
||||
export default {
|
||||
name: "askForm",
|
||||
appName: "问卷表单",
|
||||
components: {FormDetail, AiLoading},
|
||||
components: {AiResult, FormDetail},
|
||||
computed: {
|
||||
...mapState(['openUser', 'user']),
|
||||
showDetail() {
|
||||
return !!this.$route.query?.id
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
errMsg: "加载表单中..."
|
||||
errMsg() {
|
||||
return this.showDetail ? "加载表单中..." : "表单不存在"
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
this.$refs?.FormList?.reachBottom()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user