下面是官方要求配置的东西
vue-quill-editor需要引入的的`cdn
<script src="https://cdn.staticfile.org/quill/1.3.7/quill.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/vue-quill-editor@3.0.6/dist/vue-quill-editor.js"></script> <link rel="stylesheet" href="https://cdn.staticfile.org/quill/1.3.7/quill.core.min.css"> <link rel="stylesheet" href="https://cdn.staticfile.org/quill/1.3.7/quill.snow.min.css"> <link rel="stylesheet" href="https://cdn.staticfile.org/quill/1.3.7/quill.bubble.min.css"> 5.3 人性化进度条展示
NProgress在axios拦截器中添加
NProgress.start()
NProgress.done()
在axios上配置
// 进度条 import NProgress from \'nprogress\' import \'nprogress/nprogress.css\' axios.interceptors.request.use(config => { console.log(NProgress) NProgress.start() config.headers.Authorization = window.sessionStorage.getItem(\'token\') return config }) axios.interceptors.response.use(config => { NProgress.done() return config }) 5.4 serve与build
serve发现很多eslint的警告
一一按规范调整
build很多console.log警告
添加transform-remove-console插件并在胚子文件的plugins中配置
但是在serve与build阶段都会移除
按需添加插件