diff --git a/src/component/Canvas/CanvasEditor/managers/BrushIndicator.js b/src/component/Canvas/CanvasEditor/managers/BrushIndicator.js index d195bb9f..11383dad 100644 --- a/src/component/Canvas/CanvasEditor/managers/BrushIndicator.js +++ b/src/component/Canvas/CanvasEditor/managers/BrushIndicator.js @@ -391,6 +391,9 @@ export class BrushIndicator { this._mouseEnterHandler = (e) => { if (this._shouldShowIndicator()) { this.show(e.e); + const currentVpt = this.canvas.viewportTransform; + this.staticCanvas.setViewportTransform([...currentVpt]); + this.staticCanvas.renderAll(); } }; diff --git a/src/views/HomeMain.vue b/src/views/HomeMain.vue index 26f3be5b..ccf9bda1 100644 --- a/src/views/HomeMain.vue +++ b/src/views/HomeMain.vue @@ -555,14 +555,14 @@ export default defineComponent({ }) } getUnreadCount() - nextTick(()=>{ - setPorfolioDom() - }) - }) - onBeforeUnmount(()=>{ - let imgParent = document.querySelector('.homeMain_max .detail .material_content_list_loding .historyPage_loading') - if(Observer?.unobserve)Observer.unobserve(imgParent); + // nextTick(()=>{ + // setPorfolioDom() + // }) }) + // onBeforeUnmount(()=>{ + // let imgParent = document.querySelector('.homeMain_max .detail .material_content_list_loding .historyPage_loading') + // if(Observer?.unobserve)Observer.unobserve(imgParent); + // }) const setOpenType = (item) => { const { value, list } = item if (!list?.length) {