- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 vue脚手架2.96卸载失败及新脚手架安装不成功解决方案
黑窗没用 用的git的小黑窗完成此处为重装node 没用上在安装vue脚手架可能并非是那么顺利的,不经意会出现各种ERR,这时可以尝试按照以下步骤进行重安装1、在nodejs官网下载并安装最新版的node;2、更新npm,因为与node绑定安装的npm不一定是最新版的更新npm命令为:npm install -g npmnpm install可能会出现npm ERR! Unexpected end of JSON input while parsing near错误,此时可以使用输入以下命令进行
2020-11-03 16:15:57
1917
3
原创 echarts关系图例子
initChart() { let _this = this; this.chart = echarts.init(this.$refs.myEchart); this.chart.showLoading() let option = { title: { text: "企业关系" }, color: ["#7294EE", "#77C1E9", "#E88B7E", "#F1B253", "#E4C106", "#f...
2020-08-04 11:18:35
673
原创 echarts关系图指向混乱
一:在series.force.layoutAnimation设置成true.二:series.animation设置成false力引导布局会在多次迭代后才会稳定,layoutAnimation这个参数决定是否显示布局的迭代动画,在浏览器端节点数据较多(>100)的时候不建议关闭,布局过程会造成浏览器假死(此处造成错乱)。...
2020-08-04 11:15:47
1360
原创 获取今天日期或今天之前多少天 之后多少天
GetDateStr(AddDayCount) { let dd = new Date(); dd.setDate(dd.getDate() + AddDayCount); //获取AddDayCount天后的日期 let y = dd.getFullYear(); let m = dd.getMonth() + 1 < 10 ...
2019-12-18 12:10:01
457
原创 antD报错 Each record in table should have a unique `key` prop,or set `rowKey` to an unique primary ke
Each record in table should have a unique key prop,or set rowKey to an unique primary key.原因 a-tabel没有rowkey 设置rowkey
2019-11-25 19:02:45
637
原创 关于node报错npm update check failed Try running with sudo or get access to the local update...
今天运行项目时黑窗突然报错npm update check failed Try running with sudo or get access to the local update config store sudo chown -R USER:USER:USER:(id -gn $USER) C:\Users\wyz.config解决方法:删除对应文件夹下面的configstore文件...
2019-03-11 14:01:09
10632
5
转载 关于elemen-ui的el-inputl框只读或禁用
只读在data里定义:readonly: true,然后在el-input框里加上readonly就可以了。禁用在data里定义:edit: true,然后在el-input框里加上::disabled="edit"就可以了参考地址请点击...
2019-02-20 13:54:29
24029
原创 关于vue路由登陆权限的判断设置
将需要验证的路由设置meta属性在main.js页面设置路由验证router.beforeEach((to, from, next) =&amp;gt; { if (to.matched.some(record =&amp;gt; record.meta.auth)){ // 判断该路由是否需要登录权限 if (localStorage.getItem(&quot;Authorization&quot;)) {...
2019-02-15 10:34:15
1110
原创 关于vue报警告 Prop "autocomplete" is passed to component <Anonymous>, but the declared prop name is....
vue报警告 Prop “autocomplete” is passed to component , but the declared prop name is “autoComplete”. Note that HTML attributes are case-insensitive and camelCased props need to use their kebab-case equiv...
2019-02-14 15:42:27
9695
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人