refactor: 接口端口和路径调整
This commit is contained in:
1 parent
5ca52dd959
commit
7e3466de0c
3 files changed
+5
-5
No files matched your search
+3
-3
@@ -6,10 +6,10 @@ VITE_APP_TITLE=vue3-element-admin
|
|||||||
VITE_APP_BASE_API=/dev-api
|
VITE_APP_BASE_API=/dev-api
|
||||||
|
|
||||||
# 接口地址
|
# 接口地址
|
||||||
VITE_APP_API_URL=https://api.youlai.tech # 线上
|
# VITE_APP_API_URL=https://api.youlai.tech # 线上
|
||||||
# VITE_APP_API_URL=http://localhost:8989 # 本地
|
VITE_APP_API_URL=http://localhost:8000 # 本地
|
||||||
|
|
||||||
# WebSocket 端点(不配置则关闭),线上 ws://api.youlai.tech/ws ,本地 ws://localhost:8989/ws
|
# WebSocket 端点(不配置则关闭),线上 ws://api.youlai.tech/ws ,本地 ws://localhost:8000/ws
|
||||||
VITE_APP_WS_ENDPOINT=
|
VITE_APP_WS_ENDPOINT=
|
||||||
|
|
||||||
# 启用 Mock 服务
|
# 启用 Mock 服务
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import request from "@/utils/request";
|
import request from "@/utils/request";
|
||||||
|
|
||||||
const CONFIG_BASE_URL = "/api/v1/config";
|
const CONFIG_BASE_URL = "/api/v1/configs";
|
||||||
|
|
||||||
const ConfigAPI = {
|
const ConfigAPI = {
|
||||||
/** 获取配置分页数据 */
|
/** 获取配置分页数据 */
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import request from "@/utils/request";
|
import request from "@/utils/request";
|
||||||
|
|
||||||
const DEPT_BASE_URL = "/api/v1/dept";
|
const DEPT_BASE_URL = "/api/v1/depts";
|
||||||
|
|
||||||
const DeptAPI = {
|
const DeptAPI = {
|
||||||
/** 获取部门树形列表 */
|
/** 获取部门树形列表 */
|
||||||
|
|||||||
Reference in new issue
Block a user