mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-11-12 11:43:42 +08:00
refactor(projects): 代码优化
This commit is contained in:
@@ -7,6 +7,7 @@ export default function useContext<T>(contextName = 'context') {
|
||||
|
||||
function useProvide(context: T) {
|
||||
provide(injectKey, context);
|
||||
return context;
|
||||
}
|
||||
|
||||
function useInject() {
|
||||
|
||||
Reference in New Issue
Block a user