We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Originally posted by @thoth-hank in #16 (comment)
The text was updated successfully, but these errors were encountered:
修改后 得到一个新error Uncaught (in promise) TypeError: Cannot read property 'id' of undefined
methods: { init() { // 获取到 $route下params下的id,即我们在menus.vue组件处传入的数据。 const ID = this.$route.params.id; getTodo({ id: ID }).then(res => { //错误在这一行
let { id, title, count, isDelete, locked, record } = res.data.todo; // 请求成功,拿到res.data.todo;在将record 赋值到代办单项列表,其它数据赋值到todo对象 this.items = record; this.todo = { id: id, title: title, count: count, locked: locked, isDelete: isDelete }; }); },
Sorry, something went wrong.
No branches or pull requests
Originally posted by @thoth-hank in #16 (comment)
The text was updated successfully, but these errors were encountered: