feat: 搜索建议添加

This commit is contained in:
shano
2025-09-10 00:38:57 +08:00
parent d24d3d63b8
commit 2a8d0f2066
3 changed files with 209 additions and 21 deletions
+8 -1
View File
@@ -40,7 +40,14 @@ export default defineConfig({
],
publicDir: resolve('resources'),
server: {
host: '0.0.0.0'
host: '0.0.0.0',
proxy: {
'/kugou': {
target: 'http://msearchcdn.kugou.com', // 目标服务器地址
changeOrigin: true, // 必须设置为 true
rewrite: (path) => path.replace(/^\/kugou/, '') // 重写请求路径,去掉 /kugou 前缀
}
}
}
}
});