Introduced ProfileStore
Corrected All Links to DataStore
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<script setup >
|
||||
|
||||
import {useProfileStore} from "~/stores/profile.js";
|
||||
|
||||
definePageMeta({
|
||||
layout: "notLoggedIn"
|
||||
})
|
||||
@@ -8,8 +10,8 @@ const supabase = useSupabaseClient()
|
||||
const user = useSupabaseUser()
|
||||
const router = useRouter()
|
||||
const colorMode = useColorMode()
|
||||
const dataStore = useDataStore()
|
||||
const toast = useToast()
|
||||
const profileStore = useProfileStore()
|
||||
|
||||
const isLight = computed({
|
||||
get () {
|
||||
@@ -61,7 +63,7 @@ const onSubmit = async (data) => {
|
||||
|
||||
} else {
|
||||
//console.log("Login Successful")
|
||||
dataStore.initializeData(user.id)
|
||||
profileStore.initializeData(user.id)
|
||||
router.push("/")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user