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