mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 15:11:29 +08:00
useCurrentInstance() 重命名为 useGlobalProperties()
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user