Commit ab4a670b authored by Steven's avatar Steven

chore: add env example

parent ce663efc
VITE_API_BASE_URL=http://localhost:8081
import axios from "axios"; import axios from "axios";
import { Resource } from "@/types/proto/api/v2/resource_service"; import { Resource } from "@/types/proto/api/v2/resource_service";
axios.defaults.baseURL = import.meta.env.VITE_API_BASE_URL || window.location.origin; axios.defaults.baseURL = import.meta.env.VITE_API_BASE_URL || "";
axios.defaults.withCredentials = true; axios.defaults.withCredentials = true;
export function getSystemStatus() { export function getSystemStatus() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment