This commit is contained in:
Mamalizz
2025-01-14 20:49:36 +03:30
4 changed files with 5 additions and 14 deletions
-10
View File
@@ -1,5 +1,3 @@
import useGetAccount from "~/composables/api/account/useGetAccount";
export const useAuth = () => {
// state
@@ -17,14 +15,6 @@ export const useAuth = () => {
if (reload) window.location.reload();
};
// watch
watch(() => token.value, (newValue) => {
token.value = newValue;
}, {
immediate: true
});
return { token, updateToken, logout };
};
+1 -1
View File
@@ -1,7 +1,7 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: "2024-11-01",
ssr: false,
ssr: true,
devtools: { enabled: false },
css: ["~/assets/css/tailwind.css", "swiper/css"],