diff --git a/src/views/todayVocabularyList.vue b/src/views/todayVocabularyList.vue index dc05381..0f0ebcb 100644 --- a/src/views/todayVocabularyList.vue +++ b/src/views/todayVocabularyList.vue @@ -307,9 +307,6 @@ function changeWordType(type) { function backToMainPage() { router.push({ name: "wordMainPage", - query: { - reload: true, - }, }); } diff --git a/src/views/wordMainPage.vue b/src/views/wordMainPage.vue index 1c47c68..8d66189 100644 --- a/src/views/wordMainPage.vue +++ b/src/views/wordMainPage.vue @@ -72,11 +72,9 @@ import { useBookStore } from "../stores/books"; import { storeToRefs } from "pinia"; import { setNotify } from "../utils/element-plus"; import { isPC } from "../utils/common"; -import { useRouter } from "vue-router"; // mounted函数必须在异步调用之前,不然不生效 onMounted(() => { - console.log(new Date()); window.addEventListener("keyup", arrowRightGetData); }); @@ -100,16 +98,6 @@ let { getSearchText, } = useVoca(); -let router = useRouter(); - -if ( - router && - router.currentRoute.value.query && - router.currentRoute.value.query.reload -) { - location.href = "./"; -} - function OpenSetting() { drawer.value = true; bookItemBeforeSearch.value = null; @@ -203,8 +191,6 @@ function arrowRightGetData(e) { } &-body { - // display: flex; - // flex-flow: row nowrap; height: 100%; .left, .right {