修复接口调用

This commit is contained in:
aixianling
2022-07-18 14:46:00 +08:00
parent 351667a8a0
commit bd410a9559
2 changed files with 6 additions and 6 deletions

View File

@@ -130,7 +130,7 @@ export default {
methods: { methods: {
getDetailInfo() { getDetailInfo() {
this.data.appLeaveMessageReplyList = [] this.data.appLeaveMessageReplyList = []
this.instance.post(`app/appleavemessage/queryDetailById?id=` + this.detailId).then((res) => { this.instance.post(`/app/appleavemessage/queryDetailById?id=` + this.detailId).then((res) => {
this.data = res.data this.data = res.data
this.data.images = JSON.parse(res.data.images) this.data.images = JSON.parse(res.data.images)
if (this.data.appLeaveMessageReplyList.length) { if (this.data.appLeaveMessageReplyList.length) {
@@ -166,7 +166,7 @@ export default {
createUnitId: this.user.info.unitId, createUnitId: this.user.info.unitId,
createUnitName: this.user.info.unitName, createUnitName: this.user.info.unitName,
} }
this.instance.post(`app/appleavemessagereply/addOrUpdate`, params).then((res) => { this.instance.post(`/app/appleavemessagereply/addOrUpdate`, params).then((res) => {
console.log(res) console.log(res)
this.maskShow = false this.maskShow = false
this.getDetailInfo() this.getDetailInfo()
@@ -193,7 +193,7 @@ export default {
return item return item
}) })
} }
this.instance.post(`app/appleavemessage/addOrUpdate`, params).then((res) => { this.instance.post(`/app/appleavemessage/addOrUpdate`, params).then((res) => {
this.getDetailInfo() this.getDetailInfo()
}) })
}) })

View File

@@ -130,7 +130,7 @@ export default {
methods: { methods: {
getDetailInfo() { getDetailInfo() {
this.data.appLeaveMessageReplyList = [] this.data.appLeaveMessageReplyList = []
this.instance.post(`app/appleavemessage/queryDetailById?id=` + this.detailId).then((res) => { this.instance.post(`/app/appleavemessage/queryDetailById?id=` + this.detailId).then((res) => {
this.data = res.data this.data = res.data
this.data.images = JSON.parse(res.data.images) this.data.images = JSON.parse(res.data.images)
if (this.data.appLeaveMessageReplyList.length) { if (this.data.appLeaveMessageReplyList.length) {
@@ -166,7 +166,7 @@ export default {
createUnitId: this.user.info.unitId, createUnitId: this.user.info.unitId,
createUnitName: this.user.info.unitName, createUnitName: this.user.info.unitName,
} }
this.instance.post(`app/appleavemessagereply/addOrUpdate`, params).then((res) => { this.instance.post(`/app/appleavemessagereply/addOrUpdate`, params).then((res) => {
console.log(res) console.log(res)
this.maskShow = false this.maskShow = false
this.getDetailInfo() this.getDetailInfo()
@@ -193,7 +193,7 @@ export default {
return item return item
}) })
} }
this.instance.post(`app/appleavemessage/addOrUpdate`, params).then((res) => { this.instance.post(`/app/appleavemessage/addOrUpdate`, params).then((res) => {
this.getDetailInfo() this.getDetailInfo()
}) })
}) })