From 9e6c4d34921fea9fa9ff72a57bb976251fb38d25 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期二, 10 十月 2023 10:50:32 +0800 Subject: [PATCH] # --- pages/basics/matQuery.vue | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/pages/basics/matQuery.vue b/pages/basics/matQuery.vue index b24fed2..e721812 100644 --- a/pages/basics/matQuery.vue +++ b/pages/basics/matQuery.vue @@ -84,24 +84,28 @@ eventChannel.on('url', function(data) { that.commonUrl = data.data }) - this.locOwner() - + setTimeout(()=> { + this.locOwner() + },100) }, methods: { locOwner() { - let _this = this + let that = this uni.request({ - url: _this.commonUrl + '/locOwner/list/auth', + url: 'http://10.10.10.100:8080/bfwms' + '/locOwner/list/auth', data:{curr:1,limit:15}, header: { 'token':uni.getStorageSync('token') }, + method:'GET', success(res) { res = res.data if (res.code === 200) { - _this.owner = res.data.records + that.owner = res.data.records for (let k of res.data.records) { - _this.owners.push(k.owner) + that.owners.push(k.owner) } } + }, + fail(res) { } }) }, -- Gitblit v1.9.1