mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-04 22:41:24 +08:00
Built the basic ui framework
This commit is contained in:
@@ -1,5 +1,21 @@
|
||||
import { createApp } from 'vue'
|
||||
import './style.css'
|
||||
import App from './App.vue'
|
||||
import App from '@/App.vue'
|
||||
import router from '@/router'
|
||||
|
||||
createApp(App).mount('#app')
|
||||
import { PRODUCTION_NAME } from './constants/Common.constants.js'
|
||||
|
||||
import '@/assets/css/base.css'
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
if (to.matched.length === 0) {
|
||||
from.path ? next({ path: from.path }) : next('/')
|
||||
} else {
|
||||
if (to.meta.title) {
|
||||
document.title = PRODUCTION_NAME + ' - ' + to.meta.title
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
app.use(router).mount('#app')
|
||||
|
||||
Reference in New Issue
Block a user