liushengqiang 2 年之前
父节点
当前提交
03b959e4d8
共有 1 个文件被更改,包括 6 次插入1 次删除
  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;