liushengqiang 2 роки тому
батько
коміт
a7222158c5

+ 2 - 2
src/page-gym/custom-plugins/guide-page/index.tsx

@@ -27,8 +27,8 @@ export default defineComponent({
 	},
 	render() {
 		return (
-			<Popup class={styles.guidePage} v-model:show={this.show} overlayStyle={{ background: "transparent" }} onClosed={() => (this.show = false)}>
-				<PopContent onClose={this.close} />
+			<Popup teleport="body" class={styles.guidePage} v-model:show={this.show} overlayStyle={{ background: "transparent" }} onClosed={() => (this.show = false)}>
+				{this.show && <PopContent onClose={this.close} />}
 			</Popup>
 		);
 	},

+ 0 - 5
src/page-gym/custom-plugins/guide-page/steps/zero-step.tsx

@@ -55,13 +55,8 @@ export default defineComponent({
 	methods: {
 		setStepContent(step: number) {
 			this.audio.src = mp3s[`../mp3/${IDSteps[step]}.mp3`].default;
-      console.log(step)
-      if (step === 0){
-        this.audio.muted = true
-      }
 			this.audio.play();
 			const originElement = document.getElementById("tips-step-" + IDSteps[step]);
-
 			const box: any = originElement?.getBoundingClientRect() || {};
 			this.box = {
 				left: box.x + "px",