mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-18 06:07:48 +00:00
chore: format codes
This commit is contained in:
parent
6922c716e2
commit
9351f6bc89
73 changed files with 2321 additions and 2321 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import request from "@/utils/request";
|
||||
import { mapTrackPlayableStatus } from "@/utils/common";
|
||||
import request from '@/utils/request';
|
||||
import { mapTrackPlayableStatus } from '@/utils/common';
|
||||
|
||||
/**
|
||||
* 搜索
|
||||
|
|
@ -18,10 +18,10 @@ import { mapTrackPlayableStatus } from "@/utils/common";
|
|||
*/
|
||||
export function search(params) {
|
||||
return request({
|
||||
url: "/search",
|
||||
method: "get",
|
||||
url: '/search',
|
||||
method: 'get',
|
||||
params,
|
||||
}).then((data) => {
|
||||
}).then(data => {
|
||||
if (data.result?.song !== undefined)
|
||||
data.result.song.songs = mapTrackPlayableStatus(data.result.song.songs);
|
||||
return data;
|
||||
|
|
@ -30,8 +30,8 @@ export function search(params) {
|
|||
|
||||
export function personalFM() {
|
||||
return request({
|
||||
url: "/personal_fm",
|
||||
method: "get",
|
||||
url: '/personal_fm',
|
||||
method: 'get',
|
||||
params: {
|
||||
timestamp: new Date().getTime(),
|
||||
},
|
||||
|
|
@ -40,8 +40,8 @@ export function personalFM() {
|
|||
|
||||
export function fmTrash(id) {
|
||||
return request({
|
||||
url: "/fm_trash",
|
||||
method: "post",
|
||||
url: '/fm_trash',
|
||||
method: 'post',
|
||||
params: {
|
||||
timestamp: new Date().getTime(),
|
||||
id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue