refactor: --bug=1006704 --user=陈建星 【测试跟踪】执行测试计划,点击图片时显示错乱 https://www.tapd.cn/55049933/s/1051967
This commit is contained in:
parent
861cb5e80b
commit
bd3fecb72e
|
@ -80,7 +80,12 @@ export default {
|
||||||
let el = document.getElementById(this.id);
|
let el = document.getElementById(this.id);
|
||||||
if (el) {
|
if (el) {
|
||||||
el.addEventListener('click', () => {
|
el.addEventListener('click', () => {
|
||||||
this.defaultOpen = null;
|
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');
|
let input = el.getElementsByClassName('auto-textarea-input');
|
||||||
input[0].addEventListener('blur', () => {
|
input[0].addEventListener('blur', () => {
|
||||||
|
|
Loading…
Reference in New Issue