init
This commit is contained in:
16
cool-admin-vue/packages/crud/src/utils/global.ts
Normal file
16
cool-admin-vue/packages/crud/src/utils/global.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
// @ts-nocheck
|
||||
import { type App } from "vue";
|
||||
|
||||
export default {
|
||||
get vue(): App {
|
||||
return window.__CrudApp__;
|
||||
},
|
||||
|
||||
get(key: string) {
|
||||
return window[key];
|
||||
},
|
||||
|
||||
set(key: string, value: any) {
|
||||
window[key] = value;
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user