53 lines
1.1 KiB
TypeScript
53 lines
1.1 KiB
TypeScript
import { createApp } from 'vue'
|
|
import { createPinia } from 'pinia'
|
|
import { createRouter, createWebHashHistory } from 'vue-router'
|
|
|
|
import App from './App.vue'
|
|
import 'tdesign-vue-next/es/style/index.css'
|
|
import { initPlugins } from './plugins/init'
|
|
|
|
const pinia = createPinia()
|
|
const router = createRouter({
|
|
history: createWebHashHistory(),
|
|
routes: [
|
|
{
|
|
path: '/',
|
|
name: 'Home',
|
|
component: () => import('./views/Home.vue')
|
|
},
|
|
{
|
|
path: '/local',
|
|
name: 'Local',
|
|
component: () => import('./views/LocalMusic.vue')
|
|
},
|
|
{
|
|
path: '/liked',
|
|
name: 'Liked',
|
|
component: () => import('./views/Playlist.vue')
|
|
},
|
|
{
|
|
path: '/recent',
|
|
name: 'Recent',
|
|
component: () => import('./views/Playlist.vue')
|
|
},
|
|
{
|
|
path: '/search',
|
|
name: 'Search',
|
|
component: () => import('./views/Search.vue')
|
|
},
|
|
{
|
|
path: '/logs',
|
|
name: 'Logs',
|
|
component: () => import('./views/LogView.vue')
|
|
}
|
|
]
|
|
})
|
|
|
|
const app = createApp(App)
|
|
app.use(pinia)
|
|
app.use(router)
|
|
|
|
initPlugins().then(() => {
|
|
app.mount('#app')
|
|
})
|