MDRY

导航

上一页 1 ··· 6 7 8 9 10

2022年8月27日 #

Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value.

摘要: 在学习vue2的过程中遇到了这种问题: 在vue2.0中子组件触发改变值的时候vue组件会报错,例如: Avoid mutating a prop directly since the value will be overwritten whenever the parent component r 阅读全文

posted @ 2022-08-27 11:17 小懵丹儿 阅读(286) 评论(0) 推荐(0) 编辑

Property or method "value" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components

摘要: 报错如下: 这种情况是在template中或者方法中写了‘value’,但是在data中没有定义 阅读全文

posted @ 2022-08-27 11:13 小懵丹儿 阅读(178) 评论(0) 推荐(0) 编辑

vue使用组件<el-date-picker>报错:Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the

摘要: Vue使用element-ui组件库中的<el-data-picker>标签报错 报以下错误,最开始我以为是props通信的问题,但后来发现是版本出现问题导致的 解决办法:版本2.14.1的版本已经都不可以了需要更新版本2.15.8 阅读全文

posted @ 2022-08-27 11:06 小懵丹儿 阅读(434) 评论(0) 推荐(0) 编辑

2022年8月26日 #

路由器的两种工作模式

摘要: 路由器的两种模式:hash,history router=>index.js: 一.hash和history的区别: 对于一个url来说,什么是hash值?—— #及其后面的内容就是hash值。 hash值不会包含在 HTTP 请求中,即:hash值不会带给服务器。 hash模式: 地址中永远带着# 阅读全文

posted @ 2022-08-26 19:40 小懵丹儿 阅读(131) 评论(0) 推荐(0) 编辑

路由守卫

摘要: 一.什么是路由守卫: 通俗的理解,平时我们在商城买东西,把东西加入购物车时,如果没有登录,就会跳入到登录界面,如果登录了,就跳转到购物车界面,就是对路由进行权限控制 守卫分为三种: 全局守卫:(beforeEach,afterEach) 独享守卫:(beforeEnte) 组件内守卫:(before 阅读全文

posted @ 2022-08-26 18:09 小懵丹儿 阅读(206) 评论(0) 推荐(0) 编辑

Vue——关于public中的index的分析

摘要: 阅读全文

posted @ 2022-08-26 11:11 小懵丹儿 阅读(38) 评论(0) 推荐(0) 编辑

Vue——关于main.js的分析

摘要: 1.main.js的作用? main.js是项目的入口文件 1.实例化Vue。 2.放置项目中经常会用到的插件和CSS样式。例如: 网络请求插件:axios和vue-resource、图片懒加载插件:vue-lazyload 3.存储全局变量。例如(用于的基本信息) 以上参考地址:https://w 阅读全文

posted @ 2022-08-26 11:08 小懵丹儿 阅读(817) 评论(0) 推荐(0) 编辑

Vue——App组件作用

摘要: 1.App的作用是什么? app.vue可以当做是网站首页,是一个vue项目的主组件,页面入口文件 ,所有页面都是在App.vue下进行切换的。是整个项目的关键,app.vue负责构建定义及页面组件归集。 2.app.vue作为主组件在main.js中被使用 3.主组件app.vue调用其他组件,构 阅读全文

posted @ 2022-08-26 10:33 小懵丹儿 阅读(232) 评论(0) 推荐(0) 编辑

Vue——脚手架结构

摘要: ├── node_modules ├── public│ ├── favicon.ico: 页签图标│ └── index.html: 主页面├── src│ ├── assets: 存放静态资源│ │ └── logo.png│ │── component: 存放组件│ │ └── HelloWo 阅读全文

posted @ 2022-08-26 09:40 小懵丹儿 阅读(23) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10