From c6bd7e31093b098cb6a9ae66af56e429abfa128f Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Mon, 8 Jan 2024 09:28:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E9=A1=B5=E9=9D=A2catch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 994e23b6..b61426e0 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -193,6 +193,8 @@ }) this.$forceUpdate() + }).catch(res=>{ + console.log("获取消息失败",res) }); }, @@ -326,7 +328,8 @@ if (res.data.length > 0) { uni.setStorageSync("dictionary", res.data) } - + }).catch(res=>{ + console.log("获取字典失败",res) }) },