|
|
@@ -14,12 +14,12 @@ import operationApi from './modules/operation.ts'
|
|
|
import menuApi from './modules/menu.ts'
|
|
|
import commonApi from "./modules/common.ts";
|
|
|
import teamApi from "@/api/modules/team.ts";
|
|
|
-import representativeApi from "@/api/modules/representative.ts"
|
|
|
-import contentApi from "@/api/modules/content.ts"
|
|
|
+import representativeApi from "@/api/modules/representative.ts";
|
|
|
+import contentApi from "@/api/modules/content.ts";
|
|
|
// import { useRouter } from 'vue-router'
|
|
|
// const router = useRouter()
|
|
|
import router from "@/router"
|
|
|
-import lotteryApi from '@/api/modules/lottery.ts'
|
|
|
+import lotteryApi from '@/api/modules/lottery.ts';
|
|
|
|
|
|
const axiosInstance:ApiInstance = axios.create({
|
|
|
baseURL: (import.meta.env.DEV && import.meta.env.VITE_OPEN_PROXY === 'true') ? '/proxy/' : import.meta.env.VITE_APP_API_BASEURL,
|
|
|
@@ -113,7 +113,7 @@ const api = {
|
|
|
commonApi: commonApi(axiosInstance),
|
|
|
teamApi: teamApi(axiosInstance),
|
|
|
representativeApi: representativeApi(axiosInstance),
|
|
|
- lotteryApi: lotteryApi(axiosInstance)
|
|
|
+ lotteryApi: lotteryApi(axiosInstance),
|
|
|
contentApi:contentApi(axiosInstance)
|
|
|
}
|
|
|
export default api
|