Revert "add song request"

This reverts commit cb03299a99.
This commit is contained in:
2023-11-19 18:31:32 +08:00
parent cb03299a99
commit 1dbbc45ee5
15 changed files with 419 additions and 1738 deletions

View File

@@ -1,5 +1,5 @@
import { ACCOUNT_API_URL, BASE_API } from '@/data/constants'
import { APIRoot, AccountInfo, FunctionTypes } from './api-models'
import { APIRoot, AccountInfo } from './api-models'
import { QueryPostAPI } from '@/api/query'
import { ref } from 'vue'
import { useLocalStorage } from '@vueuse/core'
@@ -47,12 +47,6 @@ function refreshCookie() {
}
})
}
export async function SaveAccountSettings() {
return await QueryPostAPI(ACCOUNT_API_URL + 'update-setting', ACCOUNT.value?.settings)
}
export async function SaveEnableFunctions(functions: FunctionTypes[]) {
return await QueryPostAPI(ACCOUNT_API_URL + 'update-enable-functions', functions)
}
export function useAccount() {
return ACCOUNT
}