merge
This commit is contained in:
@@ -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,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"],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user