success news hot

This commit is contained in:
2023-12-23 18:01:51 +08:00
parent 46905ed6f1
commit 2faf2db922
17 changed files with 584 additions and 260 deletions

View File

@@ -35,14 +35,16 @@ module.exports = defineConfig({
'/dev': {
//后端接口的baseurl
target: 'https://open.tophub.today',
target: 'https://tenapi.cn/v2',
//是否允许跨域
changeOrigin: true,
// ws: true, //是否代理 websockets
// secure: true,
// 'secure': true,
headers: {
Connection: "kepp-alive"
Connection: "kepp-alive",
'Access-Control-Allow-Origin': '*',
"Content-Type": "application/json;charset=utf-8"
},
pathRewrite: {
//这里的作用是使用去掉api