规范res.code==0

This commit is contained in:
花有清香月有阴
2022-01-12 14:26:18 +08:00
parent b82eef54d3
commit 2ea716e892
4 changed files with 9 additions and 9 deletions

View File

@@ -92,7 +92,7 @@ export default {
this.$http
.post(`/app/appepidemicreportmember/queryDetailById?id=${this.id}`)
.then((res) => {
if (res?.code == 0) {
if (res.code == 0) {
this.userList = res.data
this.$hideLoading()
} else {
@@ -110,7 +110,7 @@ export default {
this.$http
.post(`/app/appepidemichealthreport/list?memberId=${this.id}&status=0`)
.then((res) => {
if (res?.code == 0) {
if (res.code == 0) {
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
this.$hideLoading()
} else {
@@ -128,7 +128,7 @@ export default {
this.$http
.post(`/app/appepidemicunusuallog/list?recordId=${this.id}`)
.then((res) => {
if (res?.code == 0) {
if (res.code == 0) {
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
this.$hideLoading()
} else {
@@ -166,7 +166,7 @@ export default {
cancel() {
this.$confirm(`是否解除该条异常信息?`).then(() => {
this.$http.post('/app/appepidemicreportmember/release', { id: this.id }).then((res) => {
if (res?.code == 0) {
if (res.code == 0) {
this.$u.toast('解除成功!')
uni.$emit('updateDetail')
setTimeout(() => {