From 7ec435ce456ec19ac0ae46f1c443c2a70440668f Mon Sep 17 00:00:00 2001 From: kron Date: Thu, 26 Jun 2025 13:41:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis.js | 4 ++++ src/components/BattleHeader.vue | 2 +- src/components/Matching.vue | 10 ++++++---- src/constants.js | 13 +++++++++++++ 4 files changed, 24 insertions(+), 5 deletions(-) diff --git a/src/apis.js b/src/apis.js index d0eb2fb..849e1ea 100644 --- a/src/apis.js +++ b/src/apis.js @@ -16,6 +16,10 @@ function request(method, url, data = {}) { if (res.data.message.indexOf("登录身份已失效") !== -1) { uni.removeStorageSync("token"); } + if (url.indexOf("/user/room") !== -1 && method === "GET") { + resolve({}); + return; + } uni.showToast({ title: res.data.message, icon: "none", diff --git a/src/components/BattleHeader.vue b/src/components/BattleHeader.vue index 7c3d70c..691316a 100644 --- a/src/components/BattleHeader.vue +++ b/src/components/BattleHeader.vue @@ -22,7 +22,7 @@ defineProps({ default: 2, }, }); -const bgColors = ["#364469", "#692735", "#934B4B", "#A98B69", "#8268A2 "]; +const bgColors = ["#364469", "#692735", "#934B4B", "#A98B69", "#8268A2"];