From 27bcbb46a46bde031bf865df05b8dbcee9809910 Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Fri, 8 Aug 2025 09:37:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=B7=AF=E7=94=B1):=20=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E5=A4=84=E7=90=86=E7=9B=B4=E6=8E=A5=E8=BF=9B=E5=85=A5=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=B7=AF=E7=94=B1=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除H5环境条件编译,扩展支持微信小程序分享进入等场景 --- src/App.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index 0bb8ca8..49f2ddd 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,8 +4,8 @@ import { navigateToInterceptor } from '@/router/interceptor' import 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only' onLaunch((options) => { - // #ifdef H5 - // 处理H5环境用户直接输入页面路由的情况:https://github.com/unibest-tech/unibest/issues/192 + // 处理直接进入页面路由的情况:如h5直接输入路由、微信小程序分享后进入等 + // https://github.com/unibest-tech/unibest/issues/192 console.log('App Launch', options?.path) if (options?.path) { navigateToInterceptor.invoke({ url: `/${options.path}` }) @@ -13,7 +13,6 @@ onLaunch((options) => { else { navigateToInterceptor.invoke({ url: '/' }) } - // #endif }) onShow(() => { console.log('App Show')