🎨加了一些组件数据监听优化
This commit is contained in:
7
web/src/utils/event/event.js
Normal file
7
web/src/utils/event/event.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import { getCurrentInstance } from "vue";
|
||||
|
||||
export default function event() {
|
||||
const instance = getCurrentInstance();
|
||||
const globalProperties = instance?.appContext.config.globalProperties;
|
||||
return { ...globalProperties };
|
||||
}
|
1
web/src/utils/event/index.js
Normal file
1
web/src/utils/event/index.js
Normal file
@@ -0,0 +1 @@
|
||||
export * from './event'
|
Reference in New Issue
Block a user