You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Syntax: Model.search(column, query)Contact.search('name','Mike')// maybe there are not just one Mike.search('memo','Engineer')// Yes, you can search a column without creating a indexer// `min-model` will use the last search result as the pre-flight data// in this search operation..then(result=>console.log(result))
Category.search("name",this.$route.params.name).exec()//add exec function to fix this.then(([category])=>{this.model=category;this.category=category.getCacheData();});
The text was updated successfully, but these errors were encountered:
// Syntax: Model.search(column, query)Contact.search('name','Mike')// maybe there are not just one Mike.search('memo','Engineer')// Yes, you can search a column without creating a indexer// `min-model` will use the last search result as the pre-flight data// in this search operation..then(result=>console.log(result))
Category.search("name",this.$route.params.name).exec()//add exec function to fix this.then(([category])=>{this.model=category;this.category=category.getCacheData();});
问题描述
在管理后台打开分类详情页,
http://localhost:8080/admin#/categories/${category_name}
,页面未能加载对应分类的详细内容,并报错并定位代码
解决思路
min-model 关于 search 函数的 demo
min-model
库版本差异,导致 search 函数不可用 ?最终从编辑器代码提示知道 search 函数紧跟着还有 exec 函数,最后返回 Promise 回调。
官方文档的示例代码是有误的
最后修改为:
The text was updated successfully, but these errors were encountered: