This commit is contained in:
yanran200730
2022-01-20 11:22:22 +08:00
parent e11b79b9e1
commit 9952759b41
5 changed files with 11 additions and 0 deletions

View File

@@ -33,9 +33,12 @@ instance.interceptors.response.use(res => {
}
} else {
console.error("服务器异常,请联系管理员!")
return Promise.reject(res.data)
}
}, err => {
uni.hideLoading()
console.error(err)
return Promise.reject(error)
})
export default instance

View File

@@ -193,6 +193,10 @@ export default {
}
})
},
onShow () {
document.title = !this.id ? '新建表单' : '编辑表单'
},
methods: {
toSetting() {
let {formConfig} = this

View File

@@ -40,6 +40,7 @@ export default {
}
},
mounted() {
document.title = '表单创建成功'
this.injectJWeixin(['sendChatMessage'])
},
methods: {

View File

@@ -62,6 +62,7 @@ export default {
},
onShow() {
this.getData();
document.title = this.index == 0 ? "历史会议" : "草稿箱"
},
methods: {
detail({id}) {

View File

@@ -73,6 +73,7 @@ export default {
},
created() {
this.$loading()
this.injectJWeixin(['sendChatMessage']).then(() => {
this.getDetail()
})
@@ -102,6 +103,7 @@ export default {
detail: this.flag
}
}).then(res => {
uni.hideLoading()
if (res && res.data) {
this.detailObj = res.data;
this.pageShow = true