From 7a75f8b4bf662378b0793b44cdcbc9c26a814f8e Mon Sep 17 00:00:00 2001 From: 15233722133 <15233722133@163.com> Date: Thu, 28 May 2026 14:33:10 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20app=E5=90=AF=E5=8A=A8=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 13 ++++++++----- manifest.json | 4 ++-- sheep/index.js | 28 +++++++++++++++++++++------- sheep/request/index.js | 21 +++++++++++++++++++-- sheep/store/app.js | 22 +++++++++++++++++----- sheep/store/index.js | 5 +++-- 6 files changed, 70 insertions(+), 23 deletions(-) diff --git a/App.vue b/App.vue index 081d0c2..a001e45 100644 --- a/App.vue +++ b/App.vue @@ -210,7 +210,8 @@ onShow(() => { // #ifdef APP-PLUS // 获取urlSchemes参数 - const args = plus.runtime.arguments; + const args = + typeof plus !== 'undefined' && plus?.runtime ? plus.runtime.arguments : ''; if (args) {} // 获取剪贴板 @@ -219,11 +220,13 @@ }); // #endif }); - uni.onTabBarMidButtonTap(() => { - uni.navigateTo({ - url: '/pages/home/seed', + if (typeof uni.onTabBarMidButtonTap === 'function') { + uni.onTabBarMidButtonTap(() => { + uni.navigateTo({ + url: '/pages/home/seed', + }); }); - }); + }