2026-06-04 13:41:57 +00:00
|
|
|
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'
|
2026-06-04 14:23:39 +00:00
|
|
|
import { initPlugins } from './plugins/init'
|
2026-06-04 13:41:57 +00:00
|
|
|
|
|
|
|
|
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')
|
2026-06-14 00:29:58 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/logs',
|
|
|
|
|
name: 'Logs',
|
|
|
|
|
component: () => import('./views/LogView.vue')
|
2026-06-04 13:41:57 +00:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const app = createApp(App)
|
|
|
|
|
app.use(pinia)
|
|
|
|
|
app.use(router)
|
2026-06-04 14:23:39 +00:00
|
|
|
|
|
|
|
|
initPlugins().then(() => {
|
|
|
|
|
app.mount('#app')
|
|
|
|
|
})
|