vuejs
丶Eric
这个作者很懒,什么都没留下…
展开
-
vue开发请求本地模拟数据的配置方法
VUE开发请求本地数据的配置,早期的vue-lic下面有dev-server.js和dev-client.js两文件,请求本地数据在dev-server.js里配置,最新的vue-webpack-template 中已经去掉了dev-server.js和dev-client.js 改用webpack.dev.conf.js代替,所以 配置本地访问在webpack.dev.conf.js里配置即可。...转载 2018-07-02 20:18:59 · 256 阅读 · 0 评论 -
VUE中去掉ESLint检查
在build/webpack.base.conf文件,在module的rules下注释掉以下代码const createLintingRule = () => ({ // test: /\.(js|vue)$/, // loader: 'eslint-loader', // enforce: 'pre', // include: [resolve('src'), resolve('t...原创 2018-07-02 15:32:17 · 3510 阅读 · 1 评论 -
vue-router为激活的路由设置样式
1.首先先写好类名2.在router里的js文件中添加 linkActiveClass:'active'原创 2018-07-02 16:29:08 · 4725 阅读 · 0 评论 -
vue2.0父子组件通信
因为vue2.0去除了父子组件的双向数据绑定,所以在子组件是不允许修改父组件的属性的,控制台会报如下错误:[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or com...原创 2018-07-06 23:49:10 · 223 阅读 · 0 评论