会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
不服憋着
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
下一页
2020年4月22日
webpack file-loader和url-loader用法
摘要: 图片打包关键要用到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 不服憋着
阅读(418)
评论(0)
推荐(0)
2020年4月13日
系统--登陆权限校验
摘要: // 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 不服憋着
阅读(269)
评论(0)
推荐(0)
2020年3月25日
两个数组进行权限控制---进行过滤数据
摘要: const mapfunc = function (routers, routermap, curlevelrouters) { routers.foreach(todoroute => { routermap.foreach(maproute => { if(maproute.menucode t
阅读全文
posted @ 2020-03-25 16:20 不服憋着
阅读(270)
评论(0)
推荐(0)
页面添加过度效果 使用nprogress
摘要: //导入import NProgress from 'nprogress'import 'nprogress/nprogress.css' router.beforeEach((to, from, next) => { NProgress.start() next()}) router.afterE
阅读全文
posted @ 2020-03-25 10:49 不服憋着
阅读(453)
评论(0)
推荐(0)
2020年3月19日
canvas生成图片
摘要: var canvas = document.getElementsByTagName("canvas"); if(canvas&&canvas.length>0){ // 创建标签 var oA = document.createElement("a"); // 设置下载名称 oA.download
阅读全文
posted @ 2020-03-19 16:56 不服憋着
阅读(245)
评论(0)
推荐(0)
2020年3月16日
vue数据双向绑定
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <div id="app"> <input type="text" v-model="text" /> {{text}} </div
阅读全文
posted @ 2020-03-16 14:12 不服憋着
阅读(157)
评论(0)
推荐(0)
2020年3月13日
require.context读取文件获取动态路由
摘要: const excludes = ['./index.js'] const context = require.context('./filepath',true,/\.js/) const routerMap = context.keys().filter( url => { return exc
阅读全文
posted @ 2020-03-13 17:36 不服憋着
阅读(929)
评论(0)
推荐(0)
2020年3月10日
el-select数据超出展示样式
摘要: .selectBox{ /deep/.el-select_tags{ span:first-child{ max-width:100%; text-align:left; .el-tag--light:first-child{ display:inline-block; max-width:100%
阅读全文
posted @ 2020-03-10 13:42 不服憋着
阅读(1238)
评论(0)
推荐(0)
2020年1月13日
process.env.NODE_ENV || import pic from '@/assets/33.jpg';
摘要: import pic from '@/assets/33.jpg'; export default { name: 'HelloWorld', data () { return { msg: 'Welcome to Your Vue.js App', env: `${process.env.NODE
阅读全文
posted @ 2020-01-13 15:06 不服憋着
阅读(167)
评论(0)
推荐(0)
2020年1月10日
assetsPublicPath。assetsSubDirectory
摘要: assetsRoot:打包后存放的位置 assetsSubDirectory:静态文件路径会拼接上 assetsPublicPath+assetsSubDirectory assetsPublicPath:'test' 访问路径后添加/test
阅读全文
posted @ 2020-01-10 16:49 不服憋着
阅读(1269)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
下一页
公告