主要作用
初始化vue实例,并引入所需要的插件
代码
import Vue from 'vue' //引入vue核心库
import App from './App.vue' //引入一个当前目录下的App.vue的组件
import router from './router' //导入路由
import store from './store' //引入store
import axios from 'axios' //完成ajax请求
//常用样式
import '@/assets/css/reset.styl'
import '@/assets/css/mixins.styl'
import '@/assets/css/iconfont.css'
import '@/assets/js/iconfont.js'
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
Vue.use(VueQuillEditor, {
placeholder: '正文',
});
import { handleRequest, handleResponse } from '../http-interceptor';
Vue.config.productionTip = false; //是否在生产环境中给出提示功能
import { Skeleton } from 'vant'; //引入
Vue.use(Skeleton);
//axios.d