|
@@ -939,14 +939,14 @@ export default {
|
|
|
previewImg(url) {
|
|
|
// this.$hevueImgPreview(url);
|
|
|
// this.$hevueImgPreview(url);
|
|
|
- // this.drawShow = true;
|
|
|
- // this.bg = url;
|
|
|
- this.setAvatarBase64(url, (base64) => {
|
|
|
- this.$nextTick(() => {
|
|
|
- this.drawShow = true;
|
|
|
- this.bg = base64;
|
|
|
- });
|
|
|
- });
|
|
|
+ this.drawShow = true;
|
|
|
+ this.bg = url;
|
|
|
+ // this.setAvatarBase64(url, (base64) => {
|
|
|
+ // this.$nextTick(() => {
|
|
|
+ // this.drawShow = true;
|
|
|
+ // this.bg = base64;
|
|
|
+ // });
|
|
|
+ // });
|
|
|
},
|
|
|
closeDraw() {
|
|
|
this.bg = null;
|
|
@@ -972,8 +972,8 @@ export default {
|
|
|
// 设置需要展示的图片 base64
|
|
|
setAvatarBase64(src, callback) {
|
|
|
let _this = this;
|
|
|
- // let image = new Image();
|
|
|
- let image = this.$refs.img1;
|
|
|
+ let image = new Image();
|
|
|
+ // let image = this.$refs.img1;
|
|
|
// 处理缓存
|
|
|
// image.src = src + "?v=" + Math.random();
|
|
|
image.src = src;
|