From 9162649d9d3d56d4c0db668fb80d60ceabe18e31 Mon Sep 17 00:00:00 2001 From: liuye Date: Tue, 12 Nov 2024 14:47:31 +0800 Subject: [PATCH] token --- src/project/biaopin/AppPatrolReport/Add.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/project/biaopin/AppPatrolReport/Add.vue b/src/project/biaopin/AppPatrolReport/Add.vue index 1fb5e9c..5b5e4e1 100644 --- a/src/project/biaopin/AppPatrolReport/Add.vue +++ b/src/project/biaopin/AppPatrolReport/Add.vue @@ -87,7 +87,6 @@ export default { ...mapState(['user']), }, onLoad() { - this.typeList() this.forms.girdId = this.user.girdInfos2G[0].girdId this.forms.girdName = this.user.girdInfos2G[0].girdName this.forms.girdMemberId = this.user.girdMemberId @@ -95,6 +94,9 @@ export default { this.forms.name = this.user.name this.forms.phone = this.user.phone }, + onShow() { + this.typeList() + }, methods: { chooseAddress() { uni.authorize({ @@ -129,7 +131,9 @@ export default { }) }, typeList() { - this.$instance.post(`/app/apppatrolreportgroupv2/list?current=1&size=9999`).then((res) => { + this.$instance.post(`/app/apppatrolreportgroupv2/list?current=1&size=9999`, null, { + withoutToken: true, + }).then((res) => { if (res.code == 0) { this.myList = res.data.records }