From 8bd7838458a5c19f2fa3c6d97fd91bf61e904a13 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Mon, 22 Jan 2024 11:00:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=84=E5=90=88=E5=BC=8F=20API=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=88=97=E8=A1=A8=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basic/use-attrs/use-attrs.test.js | 1 - pages/tab-bar/composition-api.uvue | 20 ++++++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/pages/composition-api/basic/use-attrs/use-attrs.test.js b/pages/composition-api/basic/use-attrs/use-attrs.test.js index 6f0c853..5eafad4 100644 --- a/pages/composition-api/basic/use-attrs/use-attrs.test.js +++ b/pages/composition-api/basic/use-attrs/use-attrs.test.js @@ -13,5 +13,4 @@ describe('useAttrs', () => { const attrsMsg = await page.$('#attrs-msg') expect(await attrsMsg.text()).toBe('attrs.msg: msg') }) - }) \ No newline at end of file diff --git a/pages/tab-bar/composition-api.uvue b/pages/tab-bar/composition-api.uvue index 5678546..53d699d 100644 --- a/pages/tab-bar/composition-api.uvue +++ b/pages/tab-bar/composition-api.uvue @@ -327,12 +327,22 @@ { name: '页面生命周期', url: 'page-lifecycle', + // #ifdef APP enable: true, + // #endif + // #ifdef WEB + enable: false, + // #endif }, { name: '组件生命周期', url: 'component-lifecycle', + // #ifdef APP enable: true, + // #endif + // #ifdef WEB + enable: false, + // #endif }, ] }, { @@ -343,11 +353,11 @@ { name: 'provide', url: 'provide', - // #ifdef APP - enable: true, - // #endif - // #ifdef WEB - enable: false, + // #ifdef APP + enable: true, + // #endif + // #ifdef WEB + enable: false, // #endif } ] -- GitLab