mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2025-12-16 20:33:03 +00:00
0.0 前端优化,302标识短链添加/d前缀
This commit is contained in:
@@ -238,7 +238,7 @@ export default {
|
||||
},
|
||||
getInfo() {
|
||||
// 初始化统计信息
|
||||
axios.get('/n1/statisticsInfo').then(
|
||||
axios.get('/v2/statisticsInfo').then(
|
||||
response => {
|
||||
if (response.data.success) {
|
||||
this.node1Info = response.data.data
|
||||
|
||||
@@ -15,12 +15,8 @@ module.exports = {
|
||||
host: '127.0.0.1',
|
||||
port: 6444,
|
||||
proxy: {
|
||||
'/api': {
|
||||
'/': {
|
||||
target: 'http://127.0.0.1:6400', // 请求本地
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/api': '/' //本身的接口地址没有 '/api' 这种通用前缀,所以要rewrite,如果本身有则去掉
|
||||
},
|
||||
ws: true
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user