优化热门搜索方案,如果更新了后端最新代码,请pull下更新

This commit is contained in:
lemon橪
2021-07-30 16:29:05 +08:00
parent 436dd56e54
commit d19b02a97d
4 changed files with 44 additions and 14 deletions

View File

@@ -30,12 +30,12 @@ export function getCategory(parent_id = 0) {
* 获取热门关键词
* @param num
*/
export function getHotKeywords(start = 0, end = 10) {
export function getHotKeywords(count) {
return http.request({
url: "/goods/hot-words",
method: Method.GET,
loading: false,
params: { start, end },
params: { count },
});
}