lex-xin 5 mesiacov pred
rodič
commit
381785814c

+ 1 - 1
public/version.json

@@ -1 +1 @@
-{"version":1737369305928}
+{"version":1737410562722}

+ 6 - 1
src/components/layout/guide-section/guide-drag.ts

@@ -180,8 +180,12 @@ export default function useDrag(
       // 初始化pos值
       window.addEventListener('resize', refreshPos);
       window.addEventListener('fullscreenchange', onFullscreenchange);
-      console.log('first - show', boxClass);
       nextTick(() => {
+        document
+          .querySelectorAll(`.${boxClass} .dragDirectionPoint`)
+          .forEach((value: Element) => {
+            value.remove();
+          });
         const layoutTopHeight =
           document.querySelector('.layoutTop')?.clientHeight || 0;
         baseSize.layoutTopHeight = Math.ceil(layoutTopHeight);
@@ -396,6 +400,7 @@ export default function useDrag(
     baseSize.defaultWidth = initSize?.width || 400;
     baseSize.defaultHeight = initSize?.height || 640;
     isResizeBlocked = false;
+
     dragShow.value = false;
   }
 

+ 1 - 1
src/components/layout/guide-section/index.tsx

@@ -61,7 +61,7 @@ export default defineComponent({
       previewShow,
       {
         resizeDirection: [true, true, true, true, true, true, true, true],
-        minHeight: 392,
+        minHeight: 391.5,
         minWidth: 600,
         defaultPosition: 'center',
         width: 1000,

+ 1 - 1
vite.config.ts

@@ -67,7 +67,7 @@ export default defineConfig(() => {
         registerType: 'prompt',
         includeAssets: ['./logo.png'],
         workbox: {
-          skipWaiting: false, // 强制跳过等待
+          skipWaiting: true, // 强制跳过等待
           clientsClaim: false
         },
         manifest: {