新增用户管理和个人信息功能,支持CRUD操作和密码修改
This commit is contained in:
+20
-2
@@ -36,13 +36,31 @@ const navLinks = [
|
||||
</RouterLink>
|
||||
<template v-if="authStore.isLoggedIn">
|
||||
<RouterLink
|
||||
to="/admin"
|
||||
to="/profile"
|
||||
class="px-3 py-1.5 rounded-md text-sm font-medium transition-colors
|
||||
hover:bg-sky-500/40"
|
||||
active-class="bg-sky-700/60"
|
||||
>
|
||||
管理后台
|
||||
用户信息
|
||||
</RouterLink>
|
||||
<template v-if="authStore.user?.role === 'admin'">
|
||||
<RouterLink
|
||||
to="/admin"
|
||||
class="px-3 py-1.5 rounded-md text-sm font-medium transition-colors
|
||||
hover:bg-sky-500/40"
|
||||
active-class="bg-sky-700/60"
|
||||
>
|
||||
管理后台
|
||||
</RouterLink>
|
||||
<RouterLink
|
||||
to="/admin/users"
|
||||
class="px-3 py-1.5 rounded-md text-sm font-medium transition-colors
|
||||
hover:bg-sky-500/40"
|
||||
active-class="bg-sky-700/60"
|
||||
>
|
||||
用户管理
|
||||
</RouterLink>
|
||||
</template>
|
||||
<a
|
||||
href="#"
|
||||
class="px-3 py-1.5 rounded-md text-sm font-medium transition-colors
|
||||
|
||||
Reference in New Issue
Block a user