refactor: 更新文件上传路径配置

- 将文件上传路径从 commonUrl 更新为 sellerUrl,确保 API 请求的正确性。
This commit is contained in:
pikachu1995@126.com
2026-07-13 14:32:34 +08:00
parent 0002a39fc4
commit fb7c0c9ca2

View File

@@ -97,7 +97,7 @@
<el-form-item v-if="canUploadImages">
<el-upload
ref="up"
:action="commonUrl + '/common/common/upload/file'"
:action="sellerUrl + '/store/common/upload/file'"
:data="uploadData"
:headers="accessToken"
:before-upload="beforeUpload"
@@ -313,7 +313,7 @@ import {
updateFileDirectory,
} from "@/api/index";
import DPlayer from "dplayer";
import {commonUrl} from "@/libs/axios";
import {sellerUrl} from "@/libs/axios";
import config from "@/config/index";
import playImg from "@/assets/play.png";
@@ -342,7 +342,7 @@ export default {
},
data() {
return {
commonUrl, // 上传文件路径
sellerUrl, // 上传文件路径
config, // api地址
fileDirectoryId: "",
groupFormValidate: {