From 923bec5a6da02802f93496b8fbae43fca6cb4089 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Tue, 31 Dec 2024 21:07:58 +0800 Subject: [PATCH] =?UTF-8?q?refactor(x):=20UniAppImpl=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/uni-app-plus/src/x/framework/app/index.ts | 2 +- packages/uni-h5/src/framework/setup/app.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/uni-app-plus/src/x/framework/app/index.ts b/packages/uni-app-plus/src/x/framework/app/index.ts index 8b594e266f0..4961663e995 100644 --- a/packages/uni-app-plus/src/x/framework/app/index.ts +++ b/packages/uni-app-plus/src/x/framework/app/index.ts @@ -20,12 +20,12 @@ import type { NavigateToOptions, SwitchTabOptions, } from '@dcloudio/uni-app-x/types/uni' +import type { UniApp } from '@dcloudio/uni-app-x/types/app' let appCtx: ComponentPublicInstance const defaultApp = { globalData: {}, } -// @ts-expect-error class UniAppImpl implements UniApp { get vm() { return appCtx diff --git a/packages/uni-h5/src/framework/setup/app.ts b/packages/uni-h5/src/framework/setup/app.ts index 2de2e71162f..d094d480612 100644 --- a/packages/uni-h5/src/framework/setup/app.ts +++ b/packages/uni-h5/src/framework/setup/app.ts @@ -8,12 +8,11 @@ import { initView, } from '@dcloudio/uni-core' import { getCurrentBasePages } from './page' +import type { UniApp } from '@dcloudio/uni-app-x/types/app' let appVm: ComponentPublicInstance -// @ts-expect-error let $uniApp: UniApp if (__X__) { - // @ts-expect-error class UniAppImpl implements UniApp { get vm() { return appVm