-
Notifications
You must be signed in to change notification settings - Fork 656
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d88e051
commit 586486a
Showing
5 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import type { AppContext } from 'vue' | ||
import type { App } from 'vue' | ||
import { Icon } from './Icon' | ||
|
||
export const setupGlobCom = (app: AppContext['app']): void => { | ||
export const setupGlobCom = (app: App<Element>): void => { | ||
app.component('Icon', Icon) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import type { AppContext, Plugin } from 'vue' | ||
import type { App } from 'vue' | ||
import { createPinia } from 'pinia' | ||
import piniaPluginPersist from 'pinia-plugin-persist' | ||
|
||
const store = createPinia() | ||
|
||
store.use(piniaPluginPersist) | ||
|
||
export const setupStore = (app: AppContext['app']) => { | ||
app.use(store as Plugin) | ||
export const setupStore = (app: App<Element>) => { | ||
app.use(store) | ||
} | ||
|
||
export { store } |