feat(store): 添加商品图片及轮播图上传功能
- 商品编辑弹窗新增商品主图上传和更换功能,支持上传进度反馈 - 实现轮播图(files字段)上传、删除和显示,支持多格式files解析 - 编辑提交时携带图片和轮播图数据进行保存 - 新增图片压缩工具函数getCompressedImageUrl,用于生成缩略图压缩URL - 统一修正上传接口URL,确保图片上传服务可用
This commit is contained in:
@@ -66,7 +66,7 @@ export async function uploadFile() {
|
||||
const tempFilePath = res.tempFilePaths[0];
|
||||
// 上传图片到OSS
|
||||
Taro.uploadFile({
|
||||
url: 'https://shop-api.websoft.top/api/oss/upload',
|
||||
url: 'https://server.websoft.top/api/oss/upload',
|
||||
filePath: tempFilePath,
|
||||
name: 'file',
|
||||
header: {
|
||||
|
||||
Reference in New Issue
Block a user