配置好了vue2的子应用接入

This commit is contained in:
2026-06-20 23:42:22 +08:00
commit 2499043df4
19 changed files with 2648 additions and 0 deletions

19
src/vite-env.d.ts vendored Normal file
View File

@@ -0,0 +1,19 @@
/// <reference types="vite/client" />
declare module '*.vue' {
import type { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
}
// micro-app 全局变量声明
declare global {
interface Window {
__MICRO_APP_ENVIRONMENT__?: boolean
__MICRO_APP_NAME__?: string
__MICRO_APP_BASE_ROUTE__?: string
microApp?: any
}
}
export {}