mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2026-06-12 17:01:45 +08:00
fix: 修改一些配置信息
This commit is contained in:
parent
8011b1fa70
commit
5700f7d532
|
|
@ -50,7 +50,7 @@ if (token) {
|
||||||
router.addRoute({
|
router.addRoute({
|
||||||
name: "root",
|
name: "root",
|
||||||
path: "/",
|
path: "/",
|
||||||
redirect: "/remote-manage"
|
redirect: "/remote-manage/remote-manage"
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
router.addRoute({
|
router.addRoute({
|
||||||
|
|
|
||||||
|
|
@ -60,9 +60,9 @@ export const constantRoute = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/remote-manage',
|
path: '/remote-manage',
|
||||||
name: '远程管理',
|
name: '远程管理AA',
|
||||||
redirect: '/remote-manage/remote-manage',
|
|
||||||
component: () => import('@/views/remote-manage/index.vue'),
|
component: () => import('@/views/remote-manage/index.vue'),
|
||||||
|
redirect: '/remote-manage/remote-manage',
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/remote-manage/remote-manage',
|
path: '/remote-manage/remote-manage',
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<RouterView/>
|
<router-view/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang='ts' setup>
|
<script lang='ts' setup>
|
||||||
import { onMounted, reactive, ref, toRefs, watch } from 'vue'
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,15 +23,15 @@ export default defineConfig({
|
||||||
server: {
|
server: {
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
// target: 'http://192.168.71.20:9999', // 目标服务器地址
|
target: 'http://127.0.0.1:6679', // 目标服务器地址
|
||||||
target: 'http://110.41.142.124:6379', // 目标服务器地址
|
// target: 'http://110.41.142.124:6379', // 目标服务器地址
|
||||||
ws: true, // 是否启用 WebSocket
|
ws: true, // 是否启用 WebSocket
|
||||||
changeOrigin: true, // 是否修改请求头中的 Origin 字段
|
changeOrigin: true, // 是否修改请求头中的 Origin 字段
|
||||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||||
},
|
},
|
||||||
'/socket.io': {
|
'/socket.io': {
|
||||||
// target: 'ws://192.168.71.20:9999',
|
target: 'ws://127.0.0.1:6679',
|
||||||
target: 'ws://110.41.142.124:6379',
|
// target: 'ws://110.41.142.124:6379',
|
||||||
ws: true,
|
ws: true,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path) => path.replace(/^\/socket.io/, ''),
|
rewrite: (path) => path.replace(/^\/socket.io/, ''),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user