![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
文章平均质量分 52
Wangxiaoming118
这个作者很懒,什么都没留下…
展开
-
vue中点击顶部导航栏切换不同的组件内容
<template> <div style="margin-top:60px;"> <h1 @click="change1('Noe')">数据看板</h1> <h1 @click="change1('projiectList')"> 数据漏斗</h1> <div :is='myComponent'> </div> </div原创 2020-12-29 11:12:01 · 1854 阅读 · 0 评论 -
vue中父子组件传参
父组件父给子传参父组件下面展示一些 内联代码片。<template> <div style="margin-top:60px;"> <h2>父组件</h2> <Index :son="mes"></Index> </div></template><script>import Index from "./index"export default {原创 2020-12-21 14:14:11 · 422 阅读 · 1 评论 -
更改浏览器导航栏的项目名称和图标
在index.htm修改<title>互动活动平台</title> <link rel="icon" href="./src/assets/bg.png" type="bg.png"><link rel="shortcut icon" href="./src/assets/bg.png" type="bg.png"> <!-- 必须 -->在webpack.dev.conf.js中添加favicon:’./src/assets/bg.p原创 2020-11-20 15:15:35 · 653 阅读 · 1 评论 -
Avoided redundant navigation to current location: “/xxx”
报错显示路由重复,对功能没有影响。报错显示路由重复,对功能没有影响。解决方法:router 文件下 index.js 中添加下面代码即可// 解决ElementUI导航栏中的vue-router在3.0版本以上重复点菜单报错问题const originalPush = Router.prototype.pushRouter.prototype.push = function push (location) {return originalPush.call(this, location).ca原创 2020-11-20 14:56:26 · 167 阅读 · 0 评论 -
Operation not permitted unlink
原创 2020-11-19 09:43:41 · 233 阅读 · 0 评论 -
{ parser: “babylon“ } is deprecated; we now treat it as { parser: “babel“ }
打开cmd 输入set NODE_OPTIONS=–openssl-legacy-provider 在npm run dev 就好了。修复上游依赖冲突,否则retryERR!使用——force来执行这个命令。接受不正确(并且可能损坏)的依赖项解析。有可能是node版本和npm版本bu匹配导致的,参考一下链接解决问题。大概意思是当前包的依赖项和之前安装的某些包需求的依赖项有冲突。使用element-admin框架,node版本过高报错。翻译 2020-11-19 09:42:13 · 157 阅读 · 0 评论 -
vscode插件
VScode插件原创 2020-11-12 21:26:24 · 89 阅读 · 0 评论 -
vue中获取当前系统时间
vue中获取当前系统时间HTML片段<div>{{ nowDate + ' ' + nowTime + ' ' + nowWeek }}</div>data中定义的值data() {return {nowDate: “”, // 当前日期nowTime: “”, // 当前时间nowWeek: “”, // 当前星期dialogTableVisible: false};},在memethods中定义方法currentTime() {setInterva翻译 2020-06-08 15:40:54 · 9009 阅读 · 1 评论