diff --git a/src/App.vue b/src/App.vue index 9b36d7d..1b0dfd2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -22,6 +22,7 @@ import { NMessageProvider, } from "naive-ui"; import router from "./router"; + // import { CloudCircleSharp } from "@vicons/ionicons5"; const store = useStore(); @@ -44,6 +45,16 @@ store.commit("loadSettings"); store.state.settings.playing = false; //默认停止播放 store.commit("loadCaches"); +// onMounted(() => { +// window.addEventListener('popstate', popstate, false); +// }) +// const popstate = (event)=>{ +// console.log('popstate--',event); +// } +// onUnmounted(() => { +// window.removeEventListener('popstate',pop) +// }) + // router.replace('/discover/recommend') const showPlaying = ref(false); //是否显示播放列表 @@ -60,14 +71,15 @@ watch( } ) + //处理route消息 const routeToken = pubsub.subscribe("router", (msg, data) => { switch (msg) { case "router.beforeEach": case "router.afterEach": - store.commit("saveSettings", { - currentRoute: data.to.fullPath, - }); + // store.commit("saveSettings", { + // currentRoute: data.to.fullPath, + // }); break; } }); @@ -140,9 +152,9 @@ const hideWins = (e) => {
- + - + + + + {{ar.name}} + + {{ar.alias.length > 0 ? '(' + ar.alias.join(' ') + ')' : ''}} + + + + + + + + + + \ No newline at end of file diff --git a/src/components/Songlist.vue b/src/components/Songlist.vue index 711141d..6a0b0b8 100644 --- a/src/components/Songlist.vue +++ b/src/components/Songlist.vue @@ -1,31 +1,14 @@