Files
echoscoop/resources/js/plugins/auth.js
2023-09-21 23:58:23 +08:00

12 lines
232 B
JavaScript

import { useAuthStore } from "@/stores/useAuth";
export default {
install: ({ config }) => {
config.globalProperties.$auth = useAuthStore();
if (useAuthStore().loggedIn) {
useAuthStore().ftechUser();
}
},
};