This commit is contained in:
张成
2026-03-25 19:01:28 +08:00
parent 5b654824b4
commit 7d0a921805
27 changed files with 560 additions and 245 deletions

View File

@@ -39,8 +39,8 @@ admin/
```javascript
{
apiUrl: 'http://localhost:9098/admin_api/',
uploadUrl: 'http://localhost:9098/admin_api/upload',
apiUrl: 'http://localhost:9099/admin_api/',
uploadUrl: 'http://localhost:9099/admin_api/upload',
debug: true // 开发环境显示调试信息
}
```
@@ -114,7 +114,7 @@ HTTP 工具已自动使用 `apiUrl` 作为基础路径:
```javascript
// 无需手动拼接 apiUrl框架会自动处理
this.$http.get('/user/list')
// 实际请求: http://localhost:9098/admin_api/user/list
// 实际请求: http://localhost:9099/admin_api/user/list
```
---
@@ -141,8 +141,8 @@ const baseConfig = {
// 开发环境配置
const developmentConfig = {
...baseConfig,
apiUrl: 'http://localhost:9098/admin_api/', // 修改开发环境 API 地址
uploadUrl: 'http://localhost:9098/admin_api/upload',
apiUrl: 'http://localhost:9099/admin_api/', // 修改开发环境 API 地址
uploadUrl: 'http://localhost:9099/admin_api/upload',
debug: true
}
@@ -162,8 +162,8 @@ const productionConfig = {
```javascript
const developmentConfig = {
...baseConfig,
apiUrl: 'http://localhost:9098/admin_api/',
uploadUrl: 'http://localhost:9098/admin_api/upload',
apiUrl: 'http://localhost:9099/admin_api/',
uploadUrl: 'http://localhost:9099/admin_api/upload',
// 自定义配置
enableMock: true,

View File

@@ -17,8 +17,8 @@ const baseConfig = {
// 本地开发(默认)
const developmentConfig = {
...baseConfig,
apiUrl: 'http://localhost:9098/admin_api/',
uploadUrl: 'http://localhost:9098/admin_api/upload',
apiUrl: 'http://localhost:9099/admin_api/',
uploadUrl: 'http://localhost:9099/admin_api/upload',
debug: true
}