BUG 25348
This commit is contained in:
@@ -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 || "提交失败")
|
||||||
|
|||||||
@@ -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 || "提交失败")
|
||||||
|
|||||||
Reference in New Issue
Block a user