mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 08:36:19 +08:00
refactor: remove useExpose
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
import { getCurrentInstance } from 'vue';
|
||||
|
||||
// expose public api
|
||||
export function useExpose<T>(apis: T) {
|
||||
const instance = getCurrentInstance();
|
||||
if (instance) {
|
||||
Object.assign(instance.proxy, apis);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user