This commit is contained in:
yanran200730
2022-03-21 20:09:59 +08:00
parent f0b470068a
commit cdf618104b
2 changed files with 6 additions and 2 deletions

View File

@@ -191,6 +191,7 @@ export default {
this.targetList.splice(res.index, 1, res.config) this.targetList.splice(res.index, 1, res.config)
} }
}) })
document.title = !id ? '新建表单' : '编辑表单'
}, },
methods: { methods: {
toSetting() { toSetting() {
@@ -295,6 +296,7 @@ export default {
} }
}) })
this.$loading()
this.$http.post(`/app/appquestionnairetemplate/addOrUpdate`, { this.$http.post(`/app/appquestionnairetemplate/addOrUpdate`, {
...this.form, ...this.form,
fields, fields,
@@ -314,8 +316,11 @@ export default {
})}` })}`
}) })
} }
uni.hideLoading()
}).catch(e => { }).catch(e => {
this.$u.toast(e) this.$u.toast(e)
uni.hideLoading()
}) })
}, },

View File

@@ -12,7 +12,7 @@ import {mapActions} from "vuex";
export default { export default {
name: 'AppAskForm', name: 'AppAskForm',
appName: '问卷表单管理', appName: '问卷表单',
data() { data() {
return { return {
@@ -36,7 +36,6 @@ export default {
} }
}, },
onShow() { onShow() {
document.title = "问卷表单"
this.$refs?.TabPage?.show() this.$refs?.TabPage?.show()
this.$nextTick(() => { this.$nextTick(() => {
this.injectJWeixin(['sendChatMessage', 'shareAppMessage', 'shareWechatMessage']).then(() => { this.injectJWeixin(['sendChatMessage', 'shareAppMessage', 'shareWechatMessage']).then(() => {