04 2020 档案
摘要:在配置文件添加 "/": { target: "http://localhost:3000", bypass: function(req, res, proxyOptions) { if (req.headers.accept.indexOf("html") !== -1) { console.lo
阅读全文
摘要:图片打包关键要用到file-loader或url-loader,其中url-loader与file-loader功能基本一致,只不过url-loader能将小于某个大小的图片进行base64格式的转化处理。 { test: /\.(png|jpg|gif|svg)$/, use: ['file-lo
阅读全文
摘要:// permission.js 在main.js的引入 就会被执行 const whiteList =['/login'] router.beforeEach(to ,from, next) => { if(checkPermission()){ if(to.path '/'&& router.o
阅读全文
浙公网安备 33010602011771号