0.0 前端优化,302标识短链添加/d前缀

This commit is contained in:
qaiu
2024-10-28 14:36:39 +08:00
parent 05039ece51
commit 155e88223c
11 changed files with 41 additions and 17 deletions

View File

@@ -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

View File

@@ -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
},
}