Browse Source

上传组件问题

新疆影视学院高职
杨晓琪 2 years ago
parent
commit
21da0ed4db
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/common/customform.js
  2. +2
    -2
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/common/mixins.js
  3. +1
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js

+ 1
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/common/customform.js View File

@@ -211,7 +211,7 @@ export default {
const fileType = fileInfo.F_FileType
const fileSize = fileInfo.F_FileSize

const path = this.API + '/annexes/wxdown?' + this.URL_QUERY(uid, true)
const path = this.API + 'learun/adms/annexes/wxdown?' + this.URL_QUERY(uid, true)

fileList.push({ path, type: fileType, uid, size: fileSize })
}


+ 2
- 2
Learun.Framework.Ultimate V7/LearunApp-2.2.0/common/mixins.js View File

@@ -259,7 +259,7 @@ export default {
// filePath 为临时文件的路径
// formData 为请求附带的提交数据
async HTTP_UPLOAD(filePath, formData) {
const [err, res] = await this.UPLOAD('/annexes/wxupload', filePath, formData)
const [err, res] = await this.UPLOAD('learun/adms/annexes/wxupload', filePath, formData)

return this.handleResult(err, res)
},
@@ -270,7 +270,7 @@ export default {
// url 为请求地址
// formData 为请求附带的提交数据
async HTTP_DOWNLOAD(formData) {
const [err, res] = await this.DOWNLOAD('/annexes/wxdown', formData)
const [err, res] = await this.DOWNLOAD('learun/adms/annexes/wxdown', formData)

return this.handleResult(err, res)
},


+ 1
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js View File

@@ -16,7 +16,7 @@ export default {
// "http://localhost:8088/"
// ],
"apiHost": [
"http://192.168.10.31:8032/"
"http://192.168.10.58:8011/"
// "/api/",
],
"webHost":"http://192.168.10.31:8031/",


Loading…
Cancel
Save