02 2024 档案

摘要:vuex实现组件之间的数据共享过程(需要先把store挂载在main。js,就和router一样) 1.store的index.js里声明vuex,创建实例new Vuex.Store 里面会有很多模块 modules ,今天要用的模块就是tab 2.tab.js中先声明state,就是要共享的数据 阅读全文
posted @ 2024-02-29 23:20 呵呵啦 阅读(5) 评论(0) 推荐(0) 编辑
摘要:properties of undefined (reading 'filter') 一般是拼写错误,不能正确读取这个属性, 这次把menu写成了mune Method "computed" has type "object" in the component definition. Did you 阅读全文
posted @ 2024-02-28 19:03 呵呵啦 阅读(7) 评论(0) 推荐(0) 编辑
摘要:今天面试完跟着项目敲了下,第一次主动敲,不是跟着视频看一点翘一点,确实提升很大,睡前很快就能把今天的代码功能复现出来 首先配置路由:const:[]里面写上url和conponent,url是要显示在浏览器的,所以和文件地址不一样,不加点 如果有路由嵌套就是在component后面加上childre 阅读全文
posted @ 2024-02-28 00:00 呵呵啦 阅读(6) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示