refactor: --bug=1006704 --user=陈建星 【测试跟踪】执行测试计划,点击图片时显示错乱 https://www.tapd.cn/55049933/s/1051967

This commit is contained in:
chenjianxing 2021-09-26 17:03:10 +08:00 committed by jianxing
parent 861cb5e80b
commit bd3fecb72e
1 changed files with 6 additions and 1 deletions

View File

@ -80,7 +80,12 @@ export default {
let el = document.getElementById(this.id);
if (el) {
el.addEventListener('click', () => {
let imagePreview = el.getElementsByClassName('v-note-img-wrapper');
if (imagePreview.length > 0) { //
this.defaultOpen = 'preview';
} else {
this.defaultOpen = null;
}
});
let input = el.getElementsByClassName('auto-textarea-input');
input[0].addEventListener('blur', () => {