refactor: 接口端口和路径调整

This commit is contained in:
Ray.Hao
2025-12-08 08:01:41 +08:00
parent 5ca52dd959
commit 7e3466de0c
3 changed files with 5 additions and 5 deletions

View File

@@ -6,10 +6,10 @@ VITE_APP_TITLE=vue3-element-admin
VITE_APP_BASE_API=/dev-api
# 接口地址
VITE_APP_API_URL=https://api.youlai.tech # 线上
# VITE_APP_API_URL=http://localhost:8989 # 本地
# VITE_APP_API_URL=https://api.youlai.tech # 线上
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=
# 启用 Mock 服务

View File

@@ -1,6 +1,6 @@
import request from "@/utils/request";
const CONFIG_BASE_URL = "/api/v1/config";
const CONFIG_BASE_URL = "/api/v1/configs";
const ConfigAPI = {
/** 获取配置分页数据 */

View File

@@ -1,6 +1,6 @@
import request from "@/utils/request";
const DEPT_BASE_URL = "/api/v1/dept";
const DEPT_BASE_URL = "/api/v1/depts";
const DeptAPI = {
/** 获取部门树形列表 */