We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
可能是管理端没有添加到数据库
Sorry, something went wrong.
前端没判空导致的,SearchSong.vue中,result.data为null
if (!result.data.length) { currentSongList.value = []; (proxy as any).$message({ message: "暂时没有相关歌曲", type: "warning", }); } else { currentSongList.value = result.data; }
后端在没查到音乐时,返回的是return R.error("添加失败,没有找到该歌,无法加入该歌单");,导致data为null
return R.error("添加失败,没有找到该歌,无法加入该歌单");
public R songOfSingerName(String name) { QueryWrapper<Song> queryWrapper = new QueryWrapper<>(); queryWrapper.like("name",name); List<Song> songs = songMapper.selectList(queryWrapper); if (songs.isEmpty()){ return R.error("添加失败,没有找到该歌,无法加入该歌单"); } return R.success(null, songMapper.selectList(queryWrapper)); }
No branches or pull requests
The text was updated successfully, but these errors were encountered: