useCurrentInstance() 重命名为 useGlobalProperties()

This commit is contained in:
hooray
2022-10-23 14:23:43 +08:00
parent ebf0ceeb90
commit 21477cf630
4 changed files with 8 additions and 10 deletions
@@ -1,6 +1,6 @@
import type { ComponentInternalInstance } from 'vue'
export default function useCurrentInstance() {
export default function useGlobalProperties() {
const { appContext } = getCurrentInstance() as ComponentInternalInstance
return appContext.config.globalProperties
}