修改文件删除后上传无法打开、客户端改为pc

main
hcj 5 months ago
parent ceedf1b702
commit 862d6c5cdc
  1. 3
      .env.production
  2. BIN
      dist.zip
  3. 3
      src/components/ImgUpload/index.vue
  4. 4
      src/views/trainService/swiperManager.vue

@ -6,7 +6,8 @@ VUE_APP_BASE_API = '/prod-api'
# VUE_APP_BASE_API = '/test-api'
# VUE_APP_BASE_TARGET = 'https://www.keyitest.cn/prod-api'
VUE_APP_BASE_TARGET = 'http://192.168.0.230:9999'
VUE_APP_BASE_TARGET = 'http://192.168.0.229:9999'
# VUE_APP_BASE_TARGET = 'http://192.168.0.230:9999'
# VUE_APP_BASE_TARGET = 'http://www.bjkeyware.com/test-api'
# VUE_APP_BASE_TARGET = 'http://www.bjkeyware.com/prod-api'
# VUE_APP_BASE_TARGET = 'http://www.keyitest.cn/prod-api'

Binary file not shown.

@ -149,7 +149,6 @@ export default {
//
handelDelete(file, fileList) {
console.log('删除接口', this.filePath, file, fileList)
this.$emit('fileChange','')
this.filePath = ''
},
clearImages() {
@ -160,7 +159,7 @@ export default {
//
handleSuccess(response, file) {
this.value.push(response.fileName)
this.$emit('fileChange',this.upfileName)
// this.$emit('fileChange',this.upfileName)
// this.filePath=''
// this.handelDelete()
},

@ -122,7 +122,7 @@ export default {
"3": "师资培训班"
},
platform: {
"pc": "客户端",
"pc": "pc",
"app": "小程序",
},
//
@ -229,7 +229,7 @@ export default {
},
async submit() {
const data = deepClone(this.swiperInfo)
data.filePath = data.filePath.toString()
data.filePath = data.filePath[data.filePath.length-1].toString()
data.entityId = data.entityId * 1
const res = await addSwiperInfo(data)
if (res.code == 200) {

Loading…
Cancel
Save