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.
43 lines
1.1 KiB
43 lines
1.1 KiB
/*
|
|
* @Author: your name
|
|
* @Date: 2021-11-18 17:15:53
|
|
* @LastEditTime: 2021-11-22 15:40:15
|
|
* @LastEditors: Please set LastEditors
|
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
* @FilePath: /ansu-business/src/main.js
|
|
*/
|
|
import Vue from 'vue'
|
|
import App from './App.vue'
|
|
import './styles/index.less';
|
|
import mixins from "@/mixins"
|
|
import Antd from 'ant-design-vue';
|
|
import util from '@/utils/util.js'
|
|
import 'ant-design-vue/dist/antd.css';
|
|
|
|
Vue.use(Antd);
|
|
Vue.use(mixins);
|
|
Vue.use(util);
|
|
import store from "@/store";
|
|
import router from "@/permission";
|
|
Vue.config.productionTip = false
|
|
import commonTable from './components/table'
|
|
import commonUpload from './components/upload/index.vue'
|
|
import allCity from './components/allCity/index.vue'
|
|
|
|
// 注册组件
|
|
Vue.component('commonTable', commonTable)
|
|
Vue.component('commonUpload', commonUpload)
|
|
Vue.component('allCity', allCity)
|
|
|
|
router.beforeEach((to, from, next) => {
|
|
// 让页面回到顶部
|
|
document.documentElement.scrollTop = 0
|
|
next()
|
|
})
|
|
|
|
new Vue({
|
|
render: h => h(App),
|
|
router,
|
|
store
|
|
}).$mount('#app')
|