yshop/uniapp-vue3/hooks/useGlobalProperties.js
zheyun 89eca4b5a9
Some checks failed
build-push / build (push) Failing after 20s
upload source code
2026-11-02 21:15:14 +08:00

9 lines
284 B
JavaScript

// 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
}