lyswhut/lx-music-desktop · error · Error
Keyword missing
Error message
Keyword missing
What it means
Error "Keyword missing" thrown in lyswhut/lx-music-desktop.
Source
Thrown at src/renderer/core/useApp/useDeeplink/useMusicAction.js:27
import { focusWindow } from '@renderer/utils/ipc'
import { playNext } from '@renderer/core/player/action'
import { toNewMusicInfo } from '@common/utils/tools'
import { LIST_IDS } from '@common/constants'
import { getOtherSource } from '@renderer/core/music/utils'
const useSearchMusic = () => {
const router = useRouter()
return ({ paths, data: params }) => {
let text
let source
if (params) {
text = dataVerify([
{ key: 'keywords', types: ['string', 'number'], max: 128, required: true },
], params).keywords
source = params.source
} else {
if (!paths.length) throw new Error('Keyword missing')
if (paths.length > 1) {
text = paths[1]
source = paths[0]
} else {
text = paths[0]
}
if (text.length > 128) text = text.substring(0, 128)
}
if (isShowPlayerDetail.value) setShowPlayerDetail(false)
const sourceList = [...sources, 'all']
source = sourceList.includes(source) ? source : null
setTimeout(() => {
router.replace({
path: '/search',
query: {View on GitHub (pinned to 9c364b482e)
When it happens
Trigger: Thrown at src/renderer/core/useApp/useDeeplink/useMusicAction.js:27 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of lyswhut/lx-music-desktop@9c364b482e (2026-08-12).
Data as JSON: /api/errors/f42bd8f2aa5039ea.
Report an issue: GitHub.