优化
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -193,6 +193,10 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
onShow () {
|
||||
document.title = !this.id ? '新建表单' : '编辑表单'
|
||||
},
|
||||
methods: {
|
||||
toSetting() {
|
||||
let {formConfig} = this
|
||||
|
||||
@@ -40,6 +40,7 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
document.title = '表单创建成功'
|
||||
this.injectJWeixin(['sendChatMessage'])
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -62,6 +62,7 @@ export default {
|
||||
},
|
||||
onShow() {
|
||||
this.getData();
|
||||
document.title = this.index == 0 ? "历史会议" : "草稿箱"
|
||||
},
|
||||
methods: {
|
||||
detail({id}) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user