mirror of
				https://github.com/continew-org/continew-admin-ui.git
				synced 2025-11-04 10:57:08 +08:00 
			
		
		
		
	feat: 系统配置新增安全设置功能
1、在系统配置中增加安全配置,支持配置密码策略 2、移除个人安全设置 3、在账号管理中增加修改密码功能 4、每次登录后检测密码是否过期并提示修改
This commit is contained in:
		@@ -62,12 +62,6 @@ export const constantRoutes: RouteRecordRaw[] = [
 | 
			
		||||
        name: 'SettingProfile',
 | 
			
		||||
        component: () => import('@/views/setting/profile/index.vue'),
 | 
			
		||||
        meta: { title: '账号管理', showInTabs: false }
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        path: '/setting/security',
 | 
			
		||||
        name: 'SettingSecurity',
 | 
			
		||||
        component: () => import('@/views/setting/security/index.vue'),
 | 
			
		||||
        meta: { title: '安全设置', showInTabs: false }
 | 
			
		||||
      }
 | 
			
		||||
    ]
 | 
			
		||||
  }
 | 
			
		||||
@@ -88,7 +82,7 @@ export function resetRouter() {
 | 
			
		||||
    router.getRoutes().forEach((route) => {
 | 
			
		||||
      const { name } = route
 | 
			
		||||
      // console.log('name', name, path)
 | 
			
		||||
      if (name && !['Home', 'Setting', 'SettingProfile', 'SettingSecurity'].includes(name.toString())) {
 | 
			
		||||
      if (name && !['Home', 'Setting', 'SettingProfile'].includes(name.toString())) {
 | 
			
		||||
        router.hasRoute(name) && router.removeRoute(name)
 | 
			
		||||
      }
 | 
			
		||||
    })
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user