fix: linter error
This commit is contained in:
parent
36db3c2968
commit
fdae3e4c04
@ -1,14 +1,16 @@
|
|||||||
// file: src/plugins/authStore.js
|
// file: src/plugins/authStore.js
|
||||||
|
|
||||||
import { useAuthStore } from "@/stores/authStore.ts";
|
import { useAuthStore } from "@/stores/authStore.ts";
|
||||||
import keycloakService from '@/services/keycloak';
|
import keycloakService from "@/services/keycloak";
|
||||||
|
import type { Pinia } from "pinia";
|
||||||
|
import type { AppConfig } from "vue";
|
||||||
// Setup auth store as a plugin so it can be accessed globally in our FE
|
// Setup auth store as a plugin so it can be accessed globally in our FE
|
||||||
const authStorePlugin = {
|
const authStorePlugin = {
|
||||||
install(app: any, option: any) {
|
install(app: AppConfig, option: Pinia) {
|
||||||
const store = useAuthStore(option.pinia);
|
const store = useAuthStore(option.pinia);
|
||||||
app.config.globalProperties.$store = store;
|
app.config.globalProperties.$store = store;
|
||||||
keycloakService.CallInitStore(store);
|
keycloakService.CallInitStore(store);
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
|
|
||||||
export default authStorePlugin;
|
export default authStorePlugin;
|
Loading…
x
Reference in New Issue
Block a user