fixed reserved env name
This commit is contained in:
@@ -24,7 +24,7 @@ const userStore = useUserStore();
|
||||
// console.log(data);
|
||||
// userStore.user = data;
|
||||
// });
|
||||
const APIHOST = import.meta.env.BASE_URL;
|
||||
const APIHOST = import.meta.env.VITE_APIHOST;
|
||||
|
||||
async function logout() {
|
||||
await fetch(`${APIHOST}/logout`, {
|
||||
|
||||
@@ -37,7 +37,7 @@ const router = createRouter({
|
||||
]
|
||||
})
|
||||
|
||||
const addr = import.meta.env.BASE_URL;
|
||||
const addr = import.meta.env.VITE_APIHOST;
|
||||
|
||||
|
||||
router.beforeEach(async (to) => {
|
||||
|
||||
Reference in New Issue
Block a user