From ced9ede9af49db396c7fdfddbe9937caae3f414c Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Tue, 24 May 2022 15:10:16 +0800 Subject: [PATCH] feat: add user list page Signed-off-by: Ryan Wang --- src/App.vue | 5 - src/layouts/BasicLayout.vue | 5 + src/router/menus.config.ts | 2 +- src/router/routes.config.ts | 5 + src/views/contents/posts/PostList.vue | 20 +- src/views/system/plugins/PluginDetail.vue | 4 +- src/views/system/plugins/PluginList.vue | 8 + src/views/system/users/Profile.vue | 45 ++-- src/views/system/users/UserList.vue | 247 +++++++++++++++++++++- src/views/system/users/users-mock.ts | 50 +++++ 10 files changed, 363 insertions(+), 28 deletions(-) create mode 100644 src/views/system/users/users-mock.ts diff --git a/src/App.vue b/src/App.vue index 69d96733..8949e654 100644 --- a/src/App.vue +++ b/src/App.vue @@ -24,11 +24,6 @@ body { border-radius: 2em; } -*::-webkit-scrollbar { - width: 8px; - height: 8px; -} - *::-webkit-scrollbar-thumb { background-color: #ddd; background-clip: padding-box; diff --git a/src/layouts/BasicLayout.vue b/src/layouts/BasicLayout.vue index 6026fe36..9bc697ec 100644 --- a/src/layouts/BasicLayout.vue +++ b/src/layouts/BasicLayout.vue @@ -25,6 +25,7 @@
@@ -139,6 +140,10 @@ const router = useRouter(); const moreMenuVisible = ref(false); const moreMenuRootVisible = ref(false); + +const handleRouteToProfile = () => { + router.push({ name: "Profile" }); +};