feat(web): VITE_API_BASE and I6 home module navigation

Made-with: Cursor
This commit is contained in:
2026-04-06 22:46:31 +08:00
parent d9536802db
commit 499fef3c2f
3 changed files with 67 additions and 6 deletions
+6
View File
@@ -7,6 +7,12 @@ import App from "./App.vue";
import router from "./router";
import { useAuthStore } from "./stores/auth";
const apiBase =
typeof import.meta.env.VITE_API_BASE === "string" ? import.meta.env.VITE_API_BASE.trim() : "";
if (apiBase) {
axios.defaults.baseURL = apiBase.replace(/\/+$/, "");
}
const pinia = createPinia();
const app = createApp(App);
app.use(pinia);