v1.0
This commit is contained in:
8
hooks/useGlobalProperties.js
Normal file
8
hooks/useGlobalProperties.js
Normal file
@ -0,0 +1,8 @@
|
||||
// mouse.js
|
||||
import { ref, onMounted, onUnmounted, getCurrentInstance } from 'vue'
|
||||
import { onReady, onReachBottom } from '@dcloudio/uni-app'
|
||||
|
||||
export const useGlobalProperties = () => {
|
||||
const instance = getCurrentInstance()
|
||||
return instance.appContext.app.config.globalProperties
|
||||
}
|
Reference in New Issue
Block a user