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 { } else {
console.error("服务器异常,请联系管理员!") console.error("服务器异常,请联系管理员!")
return Promise.reject(res.data)
} }
}, err => { }, err => {
uni.hideLoading()
console.error(err) console.error(err)
return Promise.reject(error)
}) })
export default instance export default instance

View File

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

View File

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

View File

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

View File

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