refactor: 更新 API 请求路径与配置

This commit is contained in:
pikachu1995@126.com
2026-07-13 14:30:09 +08:00
parent c90559981e
commit e67ea56651
29 changed files with 88 additions and 227 deletions

View File

@@ -65,7 +65,7 @@
import { Camera, Delete, View } from '@element-plus/icons-vue';
import { orderDetail } from '@/api/order.js';
import { afterSaleReason, handleComplain } from '@/api/member.js';
import { commonUrl } from '@/plugins/request.js';
import { buyerUrl } from '@/plugins/request.js';
import storage from '@/plugins/storage';
export default {
components: { Camera, Delete, View },
@@ -78,7 +78,7 @@ export default {
content: ''
}, // 表单
visible: false, // 图片预览
action: commonUrl + '/common/common/upload/file', // 上传地址
action: buyerUrl + '/buyer/common/upload/file', // 上传地址
accessToken: {}, // 验证token
previewImage: '', // 图片地址
loading: false, // 加载状态