mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-08-06 02:47:29 +08:00
refactor: 更新文件上传路径配置
- 将文件上传路径从 commonUrl 更新为 sellerUrl,确保 API 请求的正确性。
This commit is contained in:
@@ -97,7 +97,7 @@
|
|||||||
<el-form-item v-if="canUploadImages">
|
<el-form-item v-if="canUploadImages">
|
||||||
<el-upload
|
<el-upload
|
||||||
ref="up"
|
ref="up"
|
||||||
:action="commonUrl + '/common/common/upload/file'"
|
:action="sellerUrl + '/store/common/upload/file'"
|
||||||
:data="uploadData"
|
:data="uploadData"
|
||||||
:headers="accessToken"
|
:headers="accessToken"
|
||||||
:before-upload="beforeUpload"
|
:before-upload="beforeUpload"
|
||||||
@@ -313,7 +313,7 @@ import {
|
|||||||
updateFileDirectory,
|
updateFileDirectory,
|
||||||
} from "@/api/index";
|
} from "@/api/index";
|
||||||
import DPlayer from "dplayer";
|
import DPlayer from "dplayer";
|
||||||
import {commonUrl} from "@/libs/axios";
|
import {sellerUrl} from "@/libs/axios";
|
||||||
|
|
||||||
import config from "@/config/index";
|
import config from "@/config/index";
|
||||||
import playImg from "@/assets/play.png";
|
import playImg from "@/assets/play.png";
|
||||||
@@ -342,7 +342,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
commonUrl, // 上传文件路径
|
sellerUrl, // 上传文件路径
|
||||||
config, // api地址
|
config, // api地址
|
||||||
fileDirectoryId: "",
|
fileDirectoryId: "",
|
||||||
groupFormValidate: {
|
groupFormValidate: {
|
||||||
|
|||||||
Reference in New Issue
Block a user