diff --git a/src/apps/AppAskForm/AddForm.vue b/src/apps/AppAskForm/AddForm.vue index 0cc9a90b..ded0b140 100644 --- a/src/apps/AppAskForm/AddForm.vue +++ b/src/apps/AppAskForm/AddForm.vue @@ -191,6 +191,7 @@ export default { this.targetList.splice(res.index, 1, res.config) } }) + document.title = !id ? '新建表单' : '编辑表单' }, methods: { toSetting() { @@ -295,6 +296,7 @@ export default { } }) + this.$loading() this.$http.post(`/app/appquestionnairetemplate/addOrUpdate`, { ...this.form, fields, @@ -314,8 +316,11 @@ export default { })}` }) } + + uni.hideLoading() }).catch(e => { this.$u.toast(e) + uni.hideLoading() }) }, diff --git a/src/saas/AppAskForm/AppAskForm.vue b/src/saas/AppAskForm/AppAskForm.vue index 03f36a9a..fde73851 100644 --- a/src/saas/AppAskForm/AppAskForm.vue +++ b/src/saas/AppAskForm/AppAskForm.vue @@ -12,7 +12,7 @@ import {mapActions} from "vuex"; export default { name: 'AppAskForm', - appName: '问卷表单管理', + appName: '问卷表单', data() { return { @@ -36,7 +36,6 @@ export default { } }, onShow() { - document.title = "问卷表单" this.$refs?.TabPage?.show() this.$nextTick(() => { this.injectJWeixin(['sendChatMessage', 'shareAppMessage', 'shareWechatMessage']).then(() => {