
Vue.js
唯爱浅浅waqq914
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
vue对象变量中属性undefined时,watch监测不到变化
问题:父组件传递的对象中属性值初始值为undefined,子组件watch监测不到该对象变化。原因:受ES5的限制,Vue.js不能检测到对象属性的添加或删除解决办法:通过Object.assign()重新创建一个对象,例如this.someObject = Object.assign({}, this.someObject, { a: 1, b: 2 })...原创 2021-03-05 22:34:36 · 1220 阅读 · 0 评论 -
vue项目中使用axios.all处理并发请求报_util2.default.axios.all is not a function异常
vue项目中使用axios.all处理并发请求报_util2.default.axios.all is not a function异常 报错: _util2.default.axios.all is not a function代码:init () { util.axios.all([this.getCourseInit(), this.getConfirmInit()]...原创 2018-06-09 18:02:02 · 10178 阅读 · 0 评论 -
vue-router页面加载不出来
vue-router页面加载不出来代码:import VueRouter from 'vue-router'import routers from './routers'Vue.use(VueRouter)const router = new VueRouter({ mode: 'history', routers}) 原因:routes:不是ro...原创 2018-10-11 18:19:18 · 5144 阅读 · 2 评论