1
0
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:
2023-04-29 01:38:45 +08:00
parent a9c51a0d96
commit e4f6e15336
30 changed files with 9177 additions and 679 deletions

View File

@@ -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')