mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-10-31 10:18:43 +08:00 
			
		
		
		
	增加SSO单点登录
This commit is contained in:
		| @@ -1,11 +1,11 @@ | ||||
| import type { App } from 'vue' | ||||
| import type { RouteRecordRaw } from 'vue-router' | ||||
| import { createRouter, createWebHashHistory } from 'vue-router' | ||||
| import { createRouter, createWebHistory } from 'vue-router' | ||||
| import remainingRouter from './modules/remaining' | ||||
|  | ||||
| // 创建路由实例 | ||||
| const router = createRouter({ | ||||
|   history: createWebHashHistory(), // createWebHashHistory URL带#,createWebHistory URL不带# | ||||
|   history: createWebHistory(), // createWebHashHistory URL带#,createWebHistory URL不带# | ||||
|   strict: true, | ||||
|   routes: remainingRouter as RouteRecordRaw[], | ||||
|   scrollBehavior: () => ({ left: 0, top: 0 }) | ||||
|   | ||||
| @@ -185,6 +185,16 @@ const remainingRouter: AppRouteRecordRaw[] = [ | ||||
|       noTagsView: true | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     path: '/sso', | ||||
|     component: () => import('@/views/Login/Login.vue'), | ||||
|     name: 'SSOLogin', | ||||
|     meta: { | ||||
|       hidden: true, | ||||
|       title: t('router.login'), | ||||
|       noTagsView: true | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     path: '/403', | ||||
|     component: () => import('@/views/Error/403.vue'), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 puhui999
					puhui999