26 lines
724 B
TypeScript
Executable File
26 lines
724 B
TypeScript
Executable File
import './permission'
|
|
import './styles/index.scss'
|
|
import 'virtual:svg-icons-register'
|
|
|
|
import { createApp } from 'vue'
|
|
|
|
import App from './App.vue'
|
|
import install from './install'
|
|
import router from './router'
|
|
|
|
async function start() {
|
|
const app = createApp(App)
|
|
app.use(install)
|
|
// The static boot panel remains in place through auth redirects and lazy route imports.
|
|
await router.isReady()
|
|
app.mount('#app')
|
|
document.getElementById('admin-boot')?.remove()
|
|
window.dispatchEvent(new Event('admin:mounted'))
|
|
}
|
|
|
|
start().catch(error => {
|
|
const panel = document.getElementById('admin-boot')
|
|
if (panel) panel.dataset.state = 'error'
|
|
console.error('管理后台启动失败:', error)
|
|
})
|