新增定位当前播放歌曲

This commit is contained in:
lyswhut
2019-10-24 14:04:44 +08:00
parent 59091a5ea9
commit b7eba95ab2
6 changed files with 65 additions and 14 deletions
+3 -2
View File
@@ -4,11 +4,12 @@ import Router from 'vue-router'
import paths from './paths'
function route(path, view, name, meta) {
function route(path, view, name, meta, props) {
return {
name: name || view,
path,
meta,
props,
component: (resovle) => import(
`../views/${view}.vue`
).then(resovle),
@@ -19,7 +20,7 @@ Vue.use(Router)
const router = new Router({
mode: 'hash',
routes: paths.map(path => route(path.path, path.view, path.name, path.meta)).concat([
routes: paths.map(path => route(path.path, path.view, path.name, path.meta, path.props)).concat([
{ path: '*', redirect: '/search' },
]),
linkActiveClass: 'active-link',
+1
View File
@@ -26,6 +26,7 @@ export default [
path: '/list',
name: 'list',
view: 'List',
// props: true,
},
{
path: '/download',