diff --git a/packages/taro-runtime/src/dsl/vue3.ts b/packages/taro-runtime/src/dsl/vue3.ts index 9d5cd6636348..0567e1e621da 100644 --- a/packages/taro-runtime/src/dsl/vue3.ts +++ b/packages/taro-runtime/src/dsl/vue3.ts @@ -2,7 +2,7 @@ import { isFunction, isArray, ensure } from '@tarojs/shared' import container from '../container' import SERVICE_IDENTIFIER from '../constants/identifiers' import { Current } from '../current' -import { injectPageInstance, safeExecute } from './common' +import { injectPageInstance } from './common' import { isBrowser } from '../env' import type { @@ -25,10 +25,6 @@ function createVue3Page (h: typeof createElement, id: string) { }, created () { injectPageInstance(this, id) - // vue3 组件 created 时机比小程序页面 onShow 慢,因此在 created 后再手动触发一次 onShow。 - this.$nextTick(() => { - safeExecute(id, 'onShow') - }) } }