vue
文章平均质量分 55
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 · 1944 阅读 · 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 · 897 阅读 · 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 · 803 阅读 · 1 评论 -
Avoided redundant navigation to current location: “/xxx”
报错显示路由重复,对功能没有影响。 报错显示路由重复,对功能没有影响。 解决方法: router 文件下 index.js 中添加下面代码即可 // 解决ElementUI导航栏中的vue-router在3.0版本以上重复点菜单报错问题 const originalPush = Router.prototype.push Router.prototype.push = function push (location) { return originalPush.call(this, location).ca原创 2020-11-20 14:56:26 · 252 阅读 · 0 评论 -
Operation not permitted unlink
原创 2020-11-19 09:43:41 · 307 阅读 · 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 · 274 阅读 · 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 · 9149 阅读 · 1 评论
分享