04 2020 档案

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