| | |
| | | this.uploadFileList.forEach((elem)=>{ |
| | | formData.append("files", elem) |
| | | }) |
| | | |
| | | const cid = this.$route.params && this.$route.params.id; |
| | | const fid =2007; |
| | | this.formDat.fid = 2007; |
| | | this.formDat.cid = parseInt(cid) ; |
| | | let _this = this |
| | | |
| | | uploadPic(formData).then(response => { |
| | |
| | | _this.formDat.url = _this.formDat.url+","+response.fileNames |
| | | alert(_this.formDat.url) |
| | | _this.uploadFileList = [] |
| | | console.log(_this.formDat) |
| | | updateNote(_this.formDat).then(response => { |
| | | alert(984) |
| | | _this.$modal.msgSuccess("图片上传成功"); |
| | | |
| | | }) |
| | | |
| | | }); |
| | | console.log(this.formDat,'formDatformDatformDatformDat') |
| | | }, |
| | |
| | | proxy: { |
| | | // detail: https://cli.vuewww.bendudu.comjs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | // target: `https://192.168.1.3:8080/`, |
| | | // target: `https://10.39.18.174:8080/`, |
| | | target: 'https://www.bendudu.com:8080/', |
| | | changeOrigin: true, |
| | | pathRewrite: { |