Browse Source

更新route

yangxiaokun 3 years ago
parent
commit
d9026153e4
2 changed files with 10 additions and 17 deletions
  1. 2 2
      src/static/js/global.js
  2. 8 15
      src/views/layout/layout.vue

+ 2 - 2
src/static/js/global.js

@@ -1,5 +1,5 @@
-const server = "http://localhost:8080/bms/api/pc/";
-// const server = "https://www.mang406.top/bms/api/pc/";
+const server = "http://localhost:8080/omp/api/pc/";
+// const server = "https://www.mang406.top/omp/api/pc/";
 
 const URL = {
 	//登录

+ 8 - 15
src/views/layout/layout.vue

@@ -5,30 +5,23 @@
 				<img src="./static/logo.png" alt="logo">
 			</div>
 			<el-menu default-active="1" class="el-menu-vertical-demo" background-color="#141b2e" text-color="#E4ECFF">
-				<router-link to="/map">
-					<el-menu-item index="1">
-						<i class="el-icon-map-location"></i>
-						<span slot="title">实时分布</span>
-					</el-menu-item>
-				</router-link>
-
-				<el-submenu index="2">
+				<el-submenu index="1">
 					<template #title><i class="el-icon-monitor"></i>设备管理</template>
+					<router-link to="/map">
+						<el-menu-item index="1-1">位置分布</el-menu-item>
+					</router-link>
 					<router-link to="/devices">
-						<el-menu-item index="2-1">设备列表</el-menu-item>
+						<el-menu-item index="1-2">设备列表</el-menu-item>
 					</router-link>
 					<router-link to="/logs">
-						<el-menu-item index="2-2">消息日志</el-menu-item>
+						<el-menu-item index="1-3">消息日志</el-menu-item>
 					</router-link>
 				</el-submenu>
 
-				<el-submenu index="3">
+				<el-submenu index="2">
 					<template #title><i class="el-icon-setting"></i>系统设置</template>
-					<el-menu-item index="3-1">项目管理</el-menu-item>
-					<el-menu-item index="3-2">项目组管理</el-menu-item>
-					<el-menu-item index="3-3">角色管理</el-menu-item>
 					<router-link to="/users">
-						<el-menu-item index="3-4">用户管理</el-menu-item>
+						<el-menu-item index="2-1">用户管理</el-menu-item>
 					</router-link>
 				</el-submenu>
 			</el-menu>