mirror of
https://github.com/hpd840321/craftlabs-authorization-sdk.git
synced 2026-06-09 10:00:30 +08:00
feat(web): VITE_API_BASE and I6 home module navigation
Made-with: Cursor
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user