mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-08 16:08:23 +08:00
修改图片路径
This commit is contained in:
@@ -110,7 +110,6 @@ export default {
|
|||||||
reader.readAsDataURL(file);
|
reader.readAsDataURL(file);
|
||||||
reader.onload = () => {
|
reader.onload = () => {
|
||||||
this.options.img = reader.result;
|
this.options.img = reader.result;
|
||||||
// console.log(this.options.img);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -124,7 +123,6 @@ export default {
|
|||||||
console.log(response.code);
|
console.log(response.code);
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.open = false;
|
this.open = false;
|
||||||
// this.options.img = process.env.VUE_APP_BASE_API + response.imgUrl;
|
|
||||||
this.options.img = response.imgUrl;
|
this.options.img = response.imgUrl;
|
||||||
console.log(this.options.img);
|
console.log(this.options.img);
|
||||||
store.commit('SET_AVATAR', this.options.img);
|
store.commit('SET_AVATAR', this.options.img);
|
||||||
|
|||||||
Reference in New Issue
Block a user