# 水下机器人 **Repository Path**: Monseter/underwater-robots ## Basic Information - **Project Name**: 水下机器人 - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-14 - **Last Updated**: 2024-01-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 项目配置 接口地址在.env.development 配置为开发环境后端地址 /src/config/index.js 为项目相关配置信息 ## 登陆接口 项目使用模拟接口fastmoke 后端需根据文档进行登陆接口返回 登陆接口返回数据 { "code": 200, "data": { "token": "SCUI.user.Auth", "userInfo": { "userId": "2", "userName": "Lolowan", "dashboard": "1", "role": [ "Auditor" ] } }, "message": "" } { "code": 200, "data": { "menu": [ { "component": "staging", "meta": {'title': '工作台', 'icon': 'el-icon-monitor', 'type': 'menu'}, "name": "staging", "path": "/staging", }, { "component": "staging", "meta": {'title': '摄像头画面', 'icon': 'el-icon-video-camera', 'type': 'menu'}, "name": "camera", "path": "/camera", }, { "component": "staging", "meta": {'title': '路径规划', 'icon': 'el-icon-place', 'type': 'menu'}, "name": "planning", "path": "/planning", }, { "component": "staging", "meta": {'title': '详细信息', 'icon': 'el-icon-more-filled', 'type': 'menu'}, "name": "detaile", "path": "/detaile", }, { "component": "staging", "meta": {'title': '系统设置', 'icon': 'el-icon-setting', 'type': 'menu'}, "name": "setting", "path": "/setting", }, ], "permissions": [ "list.add", "list.edit", "list.delete" ] }, "message": "" } // "name":"staging", // "path":"/staging", // "meta": { // "title": "工作台", // "icon": "el-icon-eleme-filled", // "type": "menu" // }, ## 主页 默认主页为staging 主页所有组件都在 /components目录下 新增组件只需要添加相应的vue组件即可 ## ## 路由 路由默认为后端返回路由对象 自定义路由在/router/systemRouter添加即可 ## 注意事项 由于dataV官方写法对VUE3有点不兼容 执行npm install后会出现报错问题 报错后找到提示的两个错误文件 把循环写到上一层dom节点即可