mirror of
https://github.com/atdunbg/Nekosonic-Music.git
synced 2026-06-22 10:48:05 +08:00
歌曲的艺术家现可点击查看其他歌曲,专辑和介绍 - **歌曲评论功能添加**: 添加歌曲的评论查看功能 - 修复私人漫游自动播放下一首调用多次问题 - 优化播放逻辑,歌曲列表在点击时候不在单首累加, 而是直接获取当前列表所有的歌曲作为播放内容
32 lines
1.5 KiB
TypeScript
32 lines
1.5 KiB
TypeScript
import { createRouter, createWebHistory } from 'vue-router';
|
|
import Home from '@/views/Home.vue';
|
|
import Discover from '@/views/Discover.vue';
|
|
import PlaylistDetail from '@/views/PlaylistDetail.vue';
|
|
import Login from '@/views/Login.vue';
|
|
import FavoriteSongs from '@/views/FavoriteSongs.vue';
|
|
import RecentPlays from '@/views/RecentPlays.vue';
|
|
import DailySongs from '@/views/DailySongs.vue';
|
|
import LocalMusic from '@/views/LocalMusic.vue';
|
|
import Settings from '@/views/Settings.vue';
|
|
|
|
|
|
const routes = [
|
|
{ path: '/', name: 'home', component: Home },
|
|
{ path: '/discover', name: 'discover', component: Discover },
|
|
{ path: '/search', name: 'search', component: Discover },
|
|
{ path: '/roam', name: 'roam', component: () => import('@/views/Roam.vue') },
|
|
{ path: '/favorites', name: 'favorites', component: FavoriteSongs },
|
|
{ path: '/recent', name: 'recent', component: RecentPlays },
|
|
{ path: '/daily', name: 'daily', component: DailySongs },
|
|
{ path: '/local-music', name: 'local-music', component: LocalMusic },
|
|
{ path: '/login', name: 'login', component: Login },
|
|
{ path: '/playlist/:id', name: 'playlist', component: PlaylistDetail },
|
|
{ path: '/artist/:id', name: 'artist', component: () => import('@/views/ArtistDetail.vue') },
|
|
{ path: '/album/:id', name: 'album', component: () => import('@/views/AlbumDetail.vue') },
|
|
{ path: '/settings', name: 'settings', component: Settings },
|
|
];
|
|
|
|
export default createRouter({
|
|
history: createWebHistory(),
|
|
routes,
|
|
}); |