From ad3e7479f44e0a31e14a013c1fa51df046aa80b0 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Thu, 18 Jul 2024 17:33:54 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E9=A1=B9=E7=9B=AE=E5=AE=9E=E6=96=BD?= =?UTF-8?q?=E5=8F=B0=E8=B4=A6=E6=97=B6=E9=97=B4=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fvcomponents/fvTable/index.vue | 11 +- src/utils/request.js | 173 +++++++++--------- .../implementation/account.vue | 5 +- 3 files changed, 105 insertions(+), 84 deletions(-) diff --git a/src/fvcomponents/fvTable/index.vue b/src/fvcomponents/fvTable/index.vue index 9cbaebe..b33e6a5 100644 --- a/src/fvcomponents/fvTable/index.vue +++ b/src/fvcomponents/fvTable/index.vue @@ -220,7 +220,11 @@ const getList = async () => { if (api) { localData.loading = true try { - const {code, data, msg} = await requestList(api, queryParmas) + const {code, data, msg} = await requestList(api, queryParmas).then(res=>{ + console.log(res) + return res + }) + console.log(code,data,msg) if (code === 1000) { if (data.rows) { localData.list = data.rows @@ -239,6 +243,10 @@ const getList = async () => { localData.loading = false } } catch (error) { + console.log("error",error) + if (!error){ + return + } ElNotification({ title: '提示', message: '请求数据失败', @@ -305,6 +313,7 @@ onMounted(() => { getList() }) +