feat(views): 添加无权限视图和用户登录视图
添加NoAuthView.vue显示无权限提示页面 添加UserLoginView.vue实现用户登录表单功能
This commit is contained in:
@@ -2,6 +2,7 @@ import type { RouteRecordRaw } from "vue-router";
|
||||
import HomeView from "../views/HomeView.vue";
|
||||
import AboutView from "../views/AboutView.vue";
|
||||
import ACCESS_ENUM from "../access/accessEnum";
|
||||
import UserLoginView from "../views/user/UserLoginView.vue";
|
||||
/**
|
||||
* 路由配置
|
||||
*/
|
||||
@@ -18,4 +19,10 @@ export const routes: Array<RouteRecordRaw> = [
|
||||
component: AboutView,
|
||||
meta: { hideInMenu: false, access: ACCESS_ENUM.NOT_LOGIN },
|
||||
},
|
||||
{
|
||||
path: "/user/login",
|
||||
name: "UserLoginView",
|
||||
component: UserLoginView,
|
||||
meta: { hideInMenu: false, access: ACCESS_ENUM.NOT_LOGIN },
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user