Commit d2a1730f authored by 小费同学阿's avatar 小费同学阿 💬

问题一:图片上传修复

parent 1c50e471
...@@ -248,6 +248,7 @@ export default { ...@@ -248,6 +248,7 @@ export default {
name: "index", name: "index",
data() { data() {
return { return {
imgUrlForm:{url:''},
dialogVisible: false, dialogVisible: false,
dialogImageUrl: '', dialogImageUrl: '',
// 管理字典 // 管理字典
...@@ -331,7 +332,9 @@ export default { ...@@ -331,7 +332,9 @@ export default {
tokenMsg: getToken() tokenMsg: getToken()
} }
this.$WebView.openCameraAll(params).then(res => { this.$WebView.openCameraAll(params).then(res => {
this.fileList.push(JSON.parse(res)) this.imgUrlForm = JSON.parse(res)
console.log('打印的图片路径shiwu',this.imgUrlForm)
this.fileList.push(this.imgUrlForm)
}) })
}, },
handlePpenCameraAll2() { handlePpenCameraAll2() {
...@@ -340,7 +343,9 @@ export default { ...@@ -340,7 +343,9 @@ export default {
tokenMsg: getToken() tokenMsg: getToken()
} }
this.$WebView.openCameraAll(params).then(res => { this.$WebView.openCameraAll(params).then(res => {
this.fileList.push(JSON.parse(res)) this.imgUrlForm = JSON.parse(res)
console.log('打印的图片路径mp',this.imgUrlForm)
this.fileList.push(this.imgUrlForm)
}) })
}, },
handlePreview(file) { handlePreview(file) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment