BUG 25348

This commit is contained in:
aixianling
2021-12-15 18:43:15 +08:00
parent b84c5b3dd7
commit 9d81882da9
2 changed files with 6 additions and 8 deletions

View File

@@ -65,7 +65,7 @@
<script> <script>
import {mapState} from "vuex"; import {mapMutations, mapState} from "vuex";
export default { export default {
name: "formDetail", name: "formDetail",
@@ -110,9 +110,7 @@ export default {
} }
}, },
methods: { methods: {
emitShow() { ...mapMutations(['logout']),
document.title = this.form.title || "调查问卷"
},
getForm() { getForm() {
let {id} = this.$route.query let {id} = this.$route.query
this.$http.post("/app/appquestionnairetemplate/queryDetailById", null, { this.$http.post("/app/appquestionnairetemplate/queryDetailById", null, {
@@ -160,6 +158,7 @@ export default {
this.result = { this.result = {
tips: "提交成功!感谢参与", tips: "提交成功!感谢参与",
} }
this.logout()
} }
}).catch(err => { }).catch(err => {
this.$u.toast(err || "提交失败") this.$u.toast(err || "提交失败")

View File

@@ -65,7 +65,7 @@
<script> <script>
import {mapState} from "vuex"; import {mapMutations, mapState} from "vuex";
export default { export default {
name: "formDetail", name: "formDetail",
@@ -110,9 +110,7 @@ export default {
} }
}, },
methods: { methods: {
emitShow() { ...mapMutations(['logout']),
document.title = this.form.title || "调查问卷"
},
getForm() { getForm() {
let {id} = this.$route.query let {id} = this.$route.query
this.$http.post("/app/appquestionnairetemplate/queryDetailById", null, { this.$http.post("/app/appquestionnairetemplate/queryDetailById", null, {
@@ -160,6 +158,7 @@ export default {
this.result = { this.result = {
tips: "提交成功!感谢参与", tips: "提交成功!感谢参与",
} }
this.logout()
} }
}).catch(err => { }).catch(err => {
this.$u.toast(err || "提交失败") this.$u.toast(err || "提交失败")