配置好了vue2的子应用接入
This commit is contained in:
19
src/vite-env.d.ts
vendored
Normal file
19
src/vite-env.d.ts
vendored
Normal 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 {}
|
||||
Reference in New Issue
Block a user