From 0c96b0ca566470678d815f2b74272084fbd3f5e5 Mon Sep 17 00:00:00 2001 From: republicline <1464474399@qq.com> Date: Sun, 29 Sep 2024 17:18:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=202024=E5=B9=B49=E6=9C=8829=E6=97=A5,=2016?= =?UTF-8?q?=E7=82=B939=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index.vue | 387 +++++++++++++++++++++++++++++++++++++++++++- vite.config.ts | 4 +- 2 files changed, 388 insertions(+), 3 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index 49e404c..b5adfef 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -139,7 +139,392 @@ function init() { function handleMenu() { useUserStore().getMenuPathList().then((res: any) => { - menus.value = res.menus; + // 之前 + // menus.value = res.menus; + menus.value = [ + { + "id": "1788398263951298561", + "parentId": "-1", + "weight": 1, + "name": "权限管理", + "path": "/permissions-manage", + "parentName": null, + "visible": "1", + "meta": { + "isLink": "", + "isIframe": null, + "isKeepAlive": false, + "icon": "icon-users", + "enName": null, + "isAffix": false, + "title": "权限管理", + "isHide": false + }, + "sortOrder": 1, + "menuType": "0", + "permission": null, + "children": [ + { + "id": "1788398728277528578", + "parentId": "1788398263951298561", + "weight": 1, + "name": "角色管理", + "path": "/permissions-manage/role-manage", + "parentName": null, + "visible": "1", + "meta": { + "isLink": "", + "isIframe": null, + "isKeepAlive": false, + "icon": null, + "enName": null, + "isAffix": false, + "title": "角色管理", + "isHide": false + }, + "sortOrder": 1, + "menuType": "0", + "permission": null + }, + { + "id": "1788398980808183809", + "parentId": "1788398263951298561", + "weight": 1, + "name": "菜单管理", + "path": "/permissions-manage/menu-manage", + "parentName": null, + "visible": "1", + "meta": { + "isLink": "", + "isIframe": null, + "isKeepAlive": false, + "icon": null, + "enName": null, + "isAffix": false, + "title": "菜单管理", + "isHide": false + }, + "sortOrder": 1, + "menuType": "0", + "permission": null + }, + { + "id": "1788398520311353346", + "parentId": "1788398263951298561", + "weight": 1, + "name": "医生管理", + "path": "/permissions-manage/doctor-manage", + "parentName": null, + "visible": "1", + "meta": { + "isLink": "", + "isIframe": null, + "isKeepAlive": false, + "icon": null, + "enName": null, + "isAffix": false, + "title": "医生管理", + "isHide": false + }, + "sortOrder": 1, + "menuType": "0", + "permission": null + } + ] + }, + { + "id": "1788402165467713538", + "parentId": "-1", + "weight": 3, + "name": "远程管理", + "path": "/remote-manage", + "parentName": null, + "visible": "1", + "meta": { + "isLink": "", + "isIframe": null, + "isKeepAlive": false, + "icon": "icon-anquanbaozhang", + "enName": null, + "isAffix": false, + "title": "远程管理", + "isHide": false + }, + "sortOrder": 3, + "menuType": "0", + "permission": null, + "children": [ + { + "id": "1788402936850550785", + "parentId": "1788402165467713538", + "weight": 1, + "name": "远程管理", + "path": "/remote-manage/remote-manage", + "parentName": null, + "visible": "1", + "meta": { + "isLink": "", + "isIframe": null, + "isKeepAlive": false, + "icon": null, + "enName": null, + "isAffix": false, + "title": "远程管理", + "isHide": false + }, + "sortOrder": 1, + "menuType": "0", + "permission": null + }, + { + "id": "1788403057281601537", + "parentId": "1788402165467713538", + "weight": 1, + "name": "预览缩略图", + "path": "/remote-manage/remote-thumbnail", + "parentName": null, + "visible": "1", + "meta": { + "isLink": "", + "isIframe": null, + "isKeepAlive": false, + "icon": null, + "enName": null, + "isAffix": false, + "title": "预览缩略图", + "isHide": false + }, + "sortOrder": 1, + "menuType": "0", + "permission": null + }, + { + "id": "1788403260881506306", + "parentId": "1788402165467713538", + "weight": 1, + "name": "远程控制", + "path": "/remote-manage/remote-control", + "parentName": null, + "visible": "1", + "meta": { + "isLink": "", + "isIframe": null, + "isKeepAlive": false, + "icon": null, + "enName": null, + "isAffix": false, + "title": "远程控制", + "isHide": false + }, + "sortOrder": 1, + "menuType": "0", + "permission": null + } + ] + }, + { + "id": "1788403685072441346", + "parentId": "-1", + "weight": 4, + "name": "后台管理", + "path": "/system-manage", + "parentName": null, + "visible": "1", + "meta": { + "isLink": "", + "isIframe": null, + "isKeepAlive": false, + "icon": "icon-houtaiguanli", + "enName": null, + "isAffix": false, + "title": "后台管理", + "isHide": false + }, + "sortOrder": 4, + "menuType": "0", + "permission": null, + "children": [ + { + "id": "1788404886811840514", + "parentId": "1788403685072441346", + "weight": 0, + "name": "用户列表", + "path": "/system-manage/user-list", + "parentName": null, + "visible": "1", + "meta": { + "isLink": "", + "isIframe": null, + "isKeepAlive": false, + "icon": null, + "enName": null, + "isAffix": false, + "title": "用户列表", + "isHide": false + }, + "sortOrder": 0, + "menuType": "0", + "permission": null + }, + { + "id": "1788403978384314370", + "parentId": "1788403685072441346", + "weight": 1, + "name": "后台首页", + "path": "/system-manage/system-home", + "parentName": null, + "visible": "1", + "meta": { + "isLink": "", + "isIframe": null, + "isKeepAlive": false, + "icon": null, + "enName": null, + "isAffix": false, + "title": "后台首页", + "isHide": false + }, + "sortOrder": 1, + "menuType": "0", + "permission": null + }, + { + "id": "1788404689717301250", + "parentId": "1788403685072441346", + "weight": 1, + "name": "合作医院地图", + "path": "/system-manage/hospitals-map", + "parentName": null, + "visible": "1", + "meta": { + "isLink": "", + "isIframe": null, + "isKeepAlive": false, + "icon": null, + "enName": null, + "isAffix": false, + "title": "合作医院地图", + "isHide": false + }, + "sortOrder": 1, + "menuType": "0", + "permission": null + }, + { + "id": "1788404150036205569", + "parentId": "1788403685072441346", + "weight": 1, + "name": "合作医院", + "path": "/system-manage/hospitals", + "parentName": null, + "visible": "1", + "meta": { + "isLink": "", + "isIframe": null, + "isKeepAlive": false, + "icon": null, + "enName": null, + "isAffix": false, + "title": "合作医院", + "isHide": false + }, + "sortOrder": 1, + "menuType": "0", + "permission": null + } + ] + }, + { + "id": "1788405101434376194", + "parentId": "-1", + "weight": 5, + "name": "系统管理", + "path": "/logs-manage", + "parentName": null, + "visible": "1", + "meta": { + "isLink": "", + "isIframe": null, + "isKeepAlive": false, + "icon": "icon-31shezhi", + "enName": null, + "isAffix": false, + "title": "系统管理", + "isHide": false + }, + "sortOrder": 5, + "menuType": "0", + "permission": null, + "children": [ + { + "id": "1788405261312856065", + "parentId": "1788405101434376194", + "weight": 0, + "name": "消息管理", + "path": "/logs-manage/message-manage", + "parentName": null, + "visible": "1", + "meta": { + "isLink": "", + "isIframe": null, + "isKeepAlive": false, + "icon": null, + "enName": null, + "isAffix": false, + "title": "消息管理", + "isHide": false + }, + "sortOrder": 0, + "menuType": "0", + "permission": null + }, + { + "id": "1788405372919091201", + "parentId": "1788405101434376194", + "weight": 1, + "name": "日志管理", + "path": "/logs-manage/logs-manage", + "parentName": null, + "visible": "1", + "meta": { + "isLink": "", + "isIframe": null, + "isKeepAlive": false, + "icon": null, + "enName": null, + "isAffix": false, + "title": "日志管理", + "isHide": false + }, + "sortOrder": 1, + "menuType": "0", + "permission": null + }, + { + "id": "1788405506948075522", + "parentId": "1788405101434376194", + "weight": 2, + "name": "词典管理", + "path": "/logs-manage/dict-manage", + "parentName": null, + "visible": "1", + "meta": { + "isLink": "", + "isIframe": null, + "isKeepAlive": false, + "icon": null, + "enName": null, + "isAffix": false, + "title": "词典管理", + "isHide": false + }, + "sortOrder": 2, + "menuType": "0", + "permission": null + } + ] + } + ] }); } diff --git a/vite.config.ts b/vite.config.ts index 559e6e0..afb96d3 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -24,14 +24,14 @@ export default defineConfig({ proxy: { '/api': { target: 'http://127.0.0.1:6679', // 目标服务器地址 - // target: 'http://110.41.142.124:6379', // 目标服务器地址 + // target: 'http://110.41.142.124:6679', // 目标服务器地址 ws: true, // 是否启用 WebSocket changeOrigin: true, // 是否修改请求头中的 Origin 字段 rewrite: (path) => path.replace(/^\/api/, ''), }, '/socket.io': { target: 'ws://127.0.0.1:6679', - // target: 'ws://110.41.142.124:6379', + // target: 'ws://110.41.142.124:6679', ws: true, changeOrigin: true, rewrite: (path) => path.replace(/^\/socket.io/, ''),