liushengqiang %!s(int64=2) %!d(string=hai) anos
pai
achega
6df00fc6e9
Modificáronse 1 ficheiros con 9 adicións e 2 borrados
  1. 9 2
      src/page-gym/custom-plugins/guide-page/index.tsx

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

@@ -3,6 +3,7 @@ import { Popup } from "vant";
 import PopContent from "./popcontent";
 import PopContent from "./popcontent";
 import state from "/src/state";
 import state from "/src/state";
 import styles from "./index.module.less";
 import styles from "./index.module.less";
+import store from "store";
 
 
 export default defineComponent({
 export default defineComponent({
 	name: "guide-page",
 	name: "guide-page",
@@ -13,7 +14,7 @@ export default defineComponent({
 		};
 		};
 	},
 	},
 	mounted() {
 	mounted() {
-		if (localStorage.getItem("tips-status") !== "showed" && state.modeType === "practise") {
+		if (store.get("tips-status") !== "showed" && state.modeType === "practise") {
 			this.step = 0;
 			this.step = 0;
 			this.show = true;
 			this.show = true;
 		}
 		}
@@ -27,7 +28,13 @@ export default defineComponent({
 	},
 	},
 	render() {
 	render() {
 		return (
 		return (
-			<Popup teleport="body" class={styles.guidePage} v-model:show={this.show} overlayStyle={{ background: "transparent" }} onClosed={() => (this.show = false)}>
+			<Popup
+				teleport="body"
+				class={styles.guidePage}
+				v-model:show={this.show}
+				overlayStyle={{ background: "transparent" }}
+				onClosed={() => (this.show = false)}
+			>
 				{this.show && <PopContent onClose={this.close} />}
 				{this.show && <PopContent onClose={this.close} />}
 			</Popup>
 			</Popup>
 		);
 		);