浏览代码

附件上传位置调整

sangwenwei 5 月之前
父节点
当前提交
ff33e825b2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/api/sys/OSSService.js

+ 1 - 1
src/api/sys/OSSService.js

@@ -191,7 +191,7 @@ export async function httpRequest (file, name, type, maxValue) { // 阿里云OSS
   const year = now.getFullYear()
   const month = now.getMonth() + 1
   const day = now.getDate() > 10 ? now.getDate() : '0' + now.getDate()
-  const filePath = '/attachment-file/assess/' + type + '/' + year + '/' + month + '/' + day + '/' + now.getTime()
+  const filePath = '/attachment-file/szCloud/' + type + '/' + year + '/' + month + '/' + day + '/' + now.getTime()
   // console.log(filePath, '文件存储路径')
   const fileName = filePath + name + '.' + exname
   // console.log(fileName, '文件名')