1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import { createApp } from 'vue';
- import './style.css';
- import App from './App.vue';
- import { router } from './router'
- import { store } from './store';
- import Antd from 'ant-design-vue';
- import 'ant-design-vue/dist/reset.css';
- import CommonLeftSider from '@/components/common/left-sider.vue';
- // router.beforeEach((to, from, next) => {
- // document.title = `${to.meta.title} - 菊城人才市场后台管理`;
- // if (!sessionStorage.getItem('token')) {
- // if (to.matched.length > 0 && !to.matched.some(record => record.meta.requiresAuth)) {
- // next()
- // } else {
- // next({
- // path: '/login'
- // })
- // }
- // } else {
- // if (store.state.permissions.permissionList == null) {
- // store.dispatch('permissions/FETCH_PERMISSION').then(() => {
- // next({
- // path: to.path
- // })
- // })
- // } else {
- // if (to.path !== '/login') {
- // next()
- // } else {
- // next(from.fullPath)
- // }
- // }
- // }
- // })
-
- const app = createApp(App);
- app.component('common-left-sider', CommonLeftSider);
- app.use(router);
- app.use(store);
- app.use(Antd);
- app.mount('#app');
|