|
@@ -1,6 +1,7 @@
|
|
|
import { PropType, defineComponent, onMounted, reactive } from "vue";
|
|
|
import DetailGuide from "./detail-guide";
|
|
|
import FingerGuide from "./finger-guide";
|
|
|
+import { getQuery } from "/src/utils/queryString";
|
|
|
|
|
|
type guideType = "detail" | "finger";
|
|
|
export default defineComponent({
|
|
@@ -12,6 +13,7 @@ export default defineComponent({
|
|
|
},
|
|
|
},
|
|
|
setup(props) {
|
|
|
+ const query = getQuery();
|
|
|
const detailGuideKey = "detailGuideKey";
|
|
|
const fingerGuideKey = "fingerGuideKey";
|
|
|
const data = reactive({
|
|
@@ -20,6 +22,7 @@ export default defineComponent({
|
|
|
fingerShow: false,
|
|
|
});
|
|
|
const init = () => {
|
|
|
+ if (!query.showGuide) return;
|
|
|
if (data.list.includes("detail")) {
|
|
|
if (localStorage.getItem(detailGuideKey)) return;
|
|
|
data.detailShow = true;
|