liushengqiang 2 anni fa
parent
commit
03b959e4d8
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      src/page-orchestra/custom-plugins/guide-page/tip2.tsx

+ 6 - 1
src/page-orchestra/custom-plugins/guide-page/tip2.tsx

@@ -79,6 +79,11 @@ export default defineComponent({
 		const getStepELe = () => {
 			const ele: HTMLElement = document.getElementById(`tips-step-${data.step}`)!;
 			if (ele) {
+				if (ele.style.display === 'none'){
+					handleNext()
+					return
+				}
+				// console.log("🚀 ~ ele:", ele.style.display === 'none')
 				const eleRect = ele.getBoundingClientRect();
 				// console.log("🚀 ~ eleRect:", ele, eleRect);
 				data.box = {
@@ -93,7 +98,7 @@ export default defineComponent({
 			getStepELe();
 		});
 
-		const handleNext = (step?: number) => {
+		const handleNext = () => {
 			if (data.step >= data.steps.length - 1) {
 				emit("close");
 				return;