mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-07-09 19:27:31 +08:00
✨ feat: 修改路由 和 播放背景
This commit is contained in:
+10
-10
@@ -1,21 +1,21 @@
|
||||
import { createRouter, createWebHistory, createMemoryHistory } from "vue-router"
|
||||
import AppLayout from "@/layout/AppLayout.vue"
|
||||
import homeRouter from "@/router/home"
|
||||
import { createRouter, createWebHashHistory } from 'vue-router'
|
||||
import AppLayout from '@/layout/AppLayout.vue'
|
||||
import homeRouter from '@/router/home'
|
||||
|
||||
let loginRouter = {
|
||||
path: "/login",
|
||||
name: "login",
|
||||
path: '/login',
|
||||
name: 'login',
|
||||
mate: {
|
||||
keepAlive: true,
|
||||
title: "登录",
|
||||
icon: "icon-Home",
|
||||
title: '登录',
|
||||
icon: 'icon-Home',
|
||||
},
|
||||
component: () => import("@/views/login/index.vue"),
|
||||
component: () => import('@/views/login/index.vue'),
|
||||
}
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: "/",
|
||||
path: '/',
|
||||
component: AppLayout,
|
||||
children: [...homeRouter, loginRouter],
|
||||
},
|
||||
@@ -23,5 +23,5 @@ const routes = [
|
||||
|
||||
export default createRouter({
|
||||
routes: routes,
|
||||
history: createWebHistory(),
|
||||
history: createWebHashHistory(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user