第一次提交
This commit is contained in:
12
jeecgboot-vue3/src/qiankun/micro/index.ts
Normal file
12
jeecgboot-vue3/src/qiankun/micro/index.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import {qiankunWindow} from 'vite-plugin-qiankun/dist/helper'
|
||||
|
||||
/**
|
||||
* 【JEECG作为乾坤子应用】【判断当前是否是以乾坤子应用的模式运行】
|
||||
*/
|
||||
export function checkIsQiankunMicro(): boolean {
|
||||
return !!qiankunWindow.__POWERED_BY_QIANKUN__;
|
||||
}
|
||||
|
||||
export function getGlobal() {
|
||||
return (checkIsQiankunMicro() ? qiankunWindow : window) as Window
|
||||
}
|
||||
Reference in New Issue
Block a user