初步修改前端
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<nav>
|
||||
<router-link to="/about">About</router-link>
|
||||
</nav>
|
||||
<router-view />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -11,7 +11,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: "/login",
|
||||
name: "Login",
|
||||
component: () => import("@/views/Login.vue"),
|
||||
component: () => import("@/views/login/Login.vue"),
|
||||
meta: {
|
||||
title: "登录",
|
||||
requiresAuth: false,
|
||||
@@ -20,7 +20,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: "/register",
|
||||
name: "Register",
|
||||
component: () => import("@/views/Register.vue"),
|
||||
component: () => import("@/views/login/Register.vue"),
|
||||
meta: {
|
||||
title: "注册",
|
||||
requiresAuth: false,
|
||||
@@ -29,7 +29,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: "/forgot-password",
|
||||
name: "ForgotPassword",
|
||||
component: () => import("@/views/ForgotPassword.vue"),
|
||||
component: () => import("@/views/login/ForgotPassword.vue"),
|
||||
meta: {
|
||||
title: "忘记密码",
|
||||
requiresAuth: false,
|
||||
@@ -85,16 +85,6 @@ const routes: Array<RouteRecordRaw> = [
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
// 旧的about路由,保持兼容
|
||||
{
|
||||
path: "/about",
|
||||
name: "About",
|
||||
component: () => import("@/views/AboutView.vue"),
|
||||
meta: {
|
||||
title: "关于",
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
// 捕获所有未匹配的路由
|
||||
{
|
||||
path: "/:pathMatch(.*)*",
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
<template>
|
||||
<div class="about">
|
||||
<h1>This is an about page</h1>
|
||||
</div>
|
||||
</template>
|
||||
0
schoolNewsWeb/src/views/Home.vue
Normal file
0
schoolNewsWeb/src/views/Home.vue
Normal file
@@ -37,7 +37,7 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item prop="captcha" v-if="showCaptcha">
|
||||
<!-- <el-form-item prop="captcha" v-if="showCaptcha">
|
||||
<div class="captcha-input">
|
||||
<el-input
|
||||
v-model="loginForm.captcha"
|
||||
@@ -50,7 +50,7 @@
|
||||
<div class="captcha-loading" v-else>加载中...</div>
|
||||
</div>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-form-item> -->
|
||||
|
||||
<el-form-item>
|
||||
<div class="login-options">
|
||||
105
schoolNewsWeb/src/views/manage/system/index.ts
Normal file
105
schoolNewsWeb/src/views/manage/system/index.ts
Normal file
@@ -0,0 +1,105 @@
|
||||
/**
|
||||
* @description 系统管理模块统一导出入口
|
||||
* @author yslg
|
||||
* @since 2025-10-07
|
||||
*/
|
||||
|
||||
// 部门管理
|
||||
export { default as DeptManageView } from './DeptManageView.vue';
|
||||
|
||||
// 菜单管理
|
||||
export { default as MenuManageView } from './MenuManageView.vue';
|
||||
|
||||
// 权限管理
|
||||
export { default as PermissionManageView } from './PermissionManageView.vue';
|
||||
|
||||
// 角色管理
|
||||
export { default as RoleManageView } from './RoleManageView.vue';
|
||||
|
||||
// 系统管理模块类型定义
|
||||
export interface SystemManageModule {
|
||||
/** 部门管理组件 */
|
||||
DeptManageView: any;
|
||||
/** 菜单管理组件 */
|
||||
MenuManageView: any;
|
||||
/** 权限管理组件 */
|
||||
PermissionManageView: any;
|
||||
/** 角色管理组件 */
|
||||
RoleManageView: any;
|
||||
}
|
||||
|
||||
// 系统管理路由配置
|
||||
export const systemManageRoutes = [
|
||||
{
|
||||
path: '/manage/system/dept',
|
||||
name: 'DeptManage',
|
||||
component: () => import('./DeptManageView.vue'),
|
||||
meta: {
|
||||
title: '部门管理',
|
||||
requiresAuth: true,
|
||||
permissions: ['system:dept:manage']
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/manage/system/menu',
|
||||
name: 'MenuManage',
|
||||
component: () => import('./MenuManageView.vue'),
|
||||
meta: {
|
||||
title: '菜单管理',
|
||||
requiresAuth: true,
|
||||
permissions: ['system:menu:manage']
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/manage/system/permission',
|
||||
name: 'PermissionManage',
|
||||
component: () => import('./PermissionManageView.vue'),
|
||||
meta: {
|
||||
title: '权限管理',
|
||||
requiresAuth: true,
|
||||
permissions: ['system:permission:manage']
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/manage/system/role',
|
||||
name: 'RoleManage',
|
||||
component: () => import('./RoleManageView.vue'),
|
||||
meta: {
|
||||
title: '角色管理',
|
||||
requiresAuth: true,
|
||||
permissions: ['system:role:manage']
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
// 系统管理菜单配置
|
||||
export const systemManageMenus = [
|
||||
{
|
||||
id: 'system-dept',
|
||||
title: '部门管理',
|
||||
icon: 'el-icon-office-building',
|
||||
path: '/manage/system/dept',
|
||||
permissions: ['system:dept:manage']
|
||||
},
|
||||
{
|
||||
id: 'system-menu',
|
||||
title: '菜单管理',
|
||||
icon: 'el-icon-menu',
|
||||
path: '/manage/system/menu',
|
||||
permissions: ['system:menu:manage']
|
||||
},
|
||||
{
|
||||
id: 'system-permission',
|
||||
title: '权限管理',
|
||||
icon: 'el-icon-key',
|
||||
path: '/manage/system/permission',
|
||||
permissions: ['system:permission:manage']
|
||||
},
|
||||
{
|
||||
id: 'system-role',
|
||||
title: '角色管理',
|
||||
icon: 'el-icon-user',
|
||||
path: '/manage/system/role',
|
||||
permissions: ['system:role:manage']
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user