增加地图元素清空功能,完成附近医院路线规划功能

This commit is contained in:
zk
2024-05-23 15:05:34 +08:00
parent 1599ffd6d8
commit 0eb5fad72f
11 changed files with 611 additions and 31 deletions
+5 -8
View File
@@ -1,12 +1,10 @@
import { LOGOUT_CURRENT_PATH } from '/@/enum/cacheEnum.ts';
export enum PageEnum {
// basic login path
BASE_LOGIN = '/login', //西安登录页
BASE_HOME = '/home', //西安首页
BASE_LOGIN_YINCHUAN = '/screenLogin', //银川登录页
YINCHUAN_HOME = '/yinChuanHome', //银川首页
//other
BASE_LOGIN = '/login',
BASE_HOME = '/home',
BASE_LOGIN_YINCHUAN = '/screenLogin',
YINCHUAN_HOME = '/yinChuanHome',
}
export function setBaseLogin(baseLogin) {
@@ -19,9 +17,8 @@ export function getBaseLogin() {
//根据当前路径跳转登录页
export function toLoginByNowPath(nowPath: string) {
//西安的页面路径
const xianPath = ['/home', '/secondScreen', '/'];
//银川的页面路径
const yinchuanPath = ['/yinChuanHome'];
if (xianPath.includes(nowPath)) {
return PageEnum.BASE_LOGIN;