Преглед на файлове

feat: ios18,选段样式问题修复

TIANYONG преди 3 месеца
родител
ревизия
caa32bf4d9
променени са 1 файла, в които са добавени 8 реда и са изтрити 8 реда
  1. 8 8
      src/view/selection/index.tsx

+ 8 - 8
src/view/selection/index.tsx

@@ -416,15 +416,15 @@ export default defineComponent({
 												position: "top",
 												className: "selectionToast",
 											});
-											// IOS18.1.1浏览器渲染更新有问题,需要手动更新一下
-											const selectionDom = document.getElementById('selectionBox')
-											if (selectionDom) {
-												selectionDom.style.display = 'none';
-												requestAnimationFrame(() => {
-													selectionDom.style.display = 'block';
-												})
-											}
 										}
+										// IOS18.1.1浏览器渲染更新有问题,需要手动更新一下
+										const selectionDom = document.getElementById('selectionBox')
+										if (selectionDom) {
+											selectionDom.style.display = 'none';
+											requestAnimationFrame(() => {
+												selectionDom.style.display = 'block';
+											})
+										}							
 									}}></div>
 								</div>
 							)