From cebd279f9ae099952d112504a701855f6377f59f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=8A=E9=87=8C?= <1227971437@qq.com> Date: Wed, 21 Apr 2021 21:08:12 +0800 Subject: [PATCH] test --- pages/list/news-list.vue | 7 ++++--- pages/list/search/search.nvue | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pages/list/news-list.vue b/pages/list/news-list.vue index 1c4403a..bf61a90 100644 --- a/pages/list/news-list.vue +++ b/pages/list/news-list.vue @@ -25,7 +25,7 @@ + :collection="collection" :field="field" :foreignKey="foreignKey" :where="where" @load="load" @error="isLoading = false"> {{error.message}} @@ -90,8 +90,9 @@ where: '', // 数据表名 collection: 'opendb-news-articles,uni-id-users', - // 查询字段,多个字段用 , 分割 - field: 'author{username, _id}, user_id,_id,avatar,title,excerpt,last_modify_date, comment_count, like_count', + // 查询字段,多个字段用 , 分割 + foreignKey: '', + field: 'author{username, _id}, _id,avatar,title,excerpt,last_modify_date, comment_count, like_count', tipShow: false ,// 是否显示顶部提示框 isLoading:true }; diff --git a/pages/list/search/search.nvue b/pages/list/search/search.nvue index a197418..1f59a0c 100644 --- a/pages/list/search/search.nvue +++ b/pages/list/search/search.nvue @@ -143,7 +143,7 @@ associativeList: [], keyBoardPopup: false, - hotWorld: 'apple', // 搜索热词,如果没有输入即回车,则搜索热词,但是不会加入搜索记录 + hotWorld: 'DCloud', // 搜索热词,如果没有输入即回车,则搜索热词,但是不会加入搜索记录 focus: true, // 是否自动聚焦 speechEngine: 'iFly' // 语音识别引擎 iFly 讯飞 baidu 百度 } -- GitLab