![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
weixin_42094764
这个作者很懒,什么都没留下…
展开
-
(转)因为遇到vue动态路由死循环问题而研究next()
最近因为next()遇到了不少问题,在这里记录一下首先是路由守卫,是不是感觉简简单单beforeEach((to, from, next) => { to // 要去的路由 from // 当前路由 next() // 放行的意思}但是在看别的项目时常常能看到next(’/logon’) 、 next(to) 或者 next({ …to, replace: true }) 这又是啥意思呢其实在路由守卫中,只有next()是放行,其他的诸如:next(’/logon’) 、 next(转载 2021-05-04 18:36:18 · 1909 阅读 · 0 评论 -
vue 如何给组件传值
首先定义一个组件,再在组件中定义一个用来接收值得属性,我这里定义得是testmsg<template> <div>{{testmsg}}</div></template><script> export default { name: "Test", props:["testmsg"] }</script><style scoped></style>原创 2021-05-04 11:56:09 · 304 阅读 · 0 评论 -
element-ui table合计功能以及改变字段样式
<el-table :data="tableData" style="width: 100%;margin-bottom: 20px;" row-key="id" border stripe default-expand-all //这是合计功能 show-summary :summary-method="getTota...原创 2021-05-04 11:01:35 · 4289 阅读 · 0 评论 -
vue elementui type check failed和表格序号问题
控制台报错:Invalid prop: type check failed for prop “prop”. Expected String with value “0”, got Number with value 0.原因:预期接收的是字符串,数据里面是数字解决办法,在这个属性后面加上 + ‘’,把数字转为字符串element 表格插件,如何设置序号 <el-table-column label="ID" width="55"> <template slot-sc原创 2021-05-02 11:35:08 · 137 阅读 · 0 评论