There was an error while loading. Please reload this page.
1 parent 0b9d310 commit 5688b69Copy full SHA for 5688b69
1 file changed
packages/uni-mp-vue/src/plugin.ts
@@ -3,6 +3,8 @@ import type { App } from 'vue'
3
import { initApp } from '@dcloudio/uni-vue'
4
import { pruneComponentPropsCache } from './helpers/renderProps'
5
6
+declare const my: any
7
+
8
interface MountOptions {
9
independent?: boolean
10
createApp?: (instance: any, root?: string) => void
@@ -70,10 +72,8 @@ function getGlobalCreateApp(method: string) {
70
72
typeof (global as any)[method] !== 'undefined'
71
73
) {
74
return (global as any)[method]
- // @ts-expect-error
75
} else if (typeof my !== 'undefined') {
76
// 支付宝小程序开启globalObjectMode配置后才会有global
77
return (my as any)[method]
78
}
79
0 commit comments