fix: 修改一些配置信息

This commit is contained in:
republicline 2024-08-20 14:21:58 +08:00
parent 8011b1fa70
commit 5700f7d532
4 changed files with 8 additions and 9 deletions

View File

@ -50,7 +50,7 @@ if (token) {
router.addRoute({
name: "root",
path: "/",
redirect: "/remote-manage"
redirect: "/remote-manage/remote-manage"
})
} else {
router.addRoute({

View File

@ -60,9 +60,9 @@ export const constantRoute = [
},
{
path: '/remote-manage',
name: '远程管理',
redirect: '/remote-manage/remote-manage',
name: '远程管理AA',
component: () => import('@/views/remote-manage/index.vue'),
redirect: '/remote-manage/remote-manage',
children: [
{
path: '/remote-manage/remote-manage',

View File

@ -1,9 +1,8 @@
<template>
<RouterView/>
<router-view/>
</template>
<script lang='ts' setup>
import { onMounted, reactive, ref, toRefs, watch } from 'vue'
</script>

View File

@ -23,15 +23,15 @@ export default defineConfig({
server: {
proxy: {
'/api': {
// target: 'http://192.168.71.20:9999', // 目标服务器地址
target: 'http://110.41.142.124:6379', // 目标服务器地址
target: 'http://127.0.0.1:6679', // 目标服务器地址
// target: 'http://110.41.142.124:6379', // 目标服务器地址
ws: true, // 是否启用 WebSocket
changeOrigin: true, // 是否修改请求头中的 Origin 字段
rewrite: (path) => path.replace(/^\/api/, ''),
},
'/socket.io': {
// target: 'ws://192.168.71.20:9999',
target: 'ws://110.41.142.124:6379',
target: 'ws://127.0.0.1:6679',
// target: 'ws://110.41.142.124:6379',
ws: true,
changeOrigin: true,
rewrite: (path) => path.replace(/^\/socket.io/, ''),