mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-22 00:30:33 +08:00
🔨 Refactor: upgrade vue2 -> vue3
This commit is contained in:
6
src/renderer/hooks/useStore.ts
Normal file
6
src/renderer/hooks/useStore.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { inject } from 'vue'
|
||||
import { storeKey } from '@/store'
|
||||
|
||||
export const useStore = () => {
|
||||
return inject(storeKey) ?? null
|
||||
}
|
||||
Reference in New Issue
Block a user