mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-06-19 13:07:33 +08:00
✨ feat: 修改搜索列表
This commit is contained in:
+7
-3
@@ -1,9 +1,13 @@
|
||||
import request from "@/utils/request"
|
||||
import { ISearchDetail } from "@/type/search"
|
||||
|
||||
interface IParams {
|
||||
keywords: string
|
||||
type: number
|
||||
}
|
||||
// 搜索内容
|
||||
export const getSearch = (keywords: any) => {
|
||||
return request.get<any>("/cloudsearch", {
|
||||
params: { keywords: keywords, type: 1 },
|
||||
export const getSearch = (params: IParams) => {
|
||||
return request.get<any>('/cloudsearch', {
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user