招聘网页
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.ts 1.1KB

1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import { createApp } from 'vue';
  2. import './style.css';
  3. import App from './App.vue';
  4. import { router } from './router'
  5. import { store } from './store';
  6. import Antd from 'ant-design-vue';
  7. import 'ant-design-vue/dist/reset.css';
  8. import CommonLeftSider from '@/components/common/left-sider.vue';
  9. // router.beforeEach((to, from, next) => {
  10. // document.title = `${to.meta.title} - 菊城人才市场后台管理`;
  11. // if (!sessionStorage.getItem('token')) {
  12. // if (to.matched.length > 0 && !to.matched.some(record => record.meta.requiresAuth)) {
  13. // next()
  14. // } else {
  15. // next({
  16. // path: '/login'
  17. // })
  18. // }
  19. // } else {
  20. // if (store.state.permissions.permissionList == null) {
  21. // store.dispatch('permissions/FETCH_PERMISSION').then(() => {
  22. // next({
  23. // path: to.path
  24. // })
  25. // })
  26. // } else {
  27. // if (to.path !== '/login') {
  28. // next()
  29. // } else {
  30. // next(from.fullPath)
  31. // }
  32. // }
  33. // }
  34. // })
  35. const app = createApp(App);
  36. app.component('common-left-sider', CommonLeftSider);
  37. app.use(router);
  38. app.use(store);
  39. app.use(Antd);
  40. app.mount('#app');