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-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: {
|
||||
|
||||
Reference in New Issue
Block a user