feat(auth): 重构权限管理系统和路由结构
All checks were successful
构建Docker镜像 / build-and-deploy (push) Successful in 1m33s

This commit is contained in:
2025-09-04 13:08:48 +08:00
parent 509b274c5c
commit 640b1aa99e
7 changed files with 184 additions and 81 deletions

View File

@@ -68,7 +68,6 @@ const viewDetails = (row: any) => {
useCounterStore().token = row.token
router.push({
name: "TokenDetail",
query: {token: row.token}
})
}
@@ -169,7 +168,7 @@ const checkPassword = () => {
<div v-if="!useCounterStore().isAdmin" style="margin: auto auto; max-width: 400px">
<el-alert title="您没有权限访问此页面,输入管理员密码" type="error" :closable="false" show-icon/>
<p></p>
<el-input v-model="inputPassWord" style="width: 400px" placeholder="请输入管理员密码"/>
<el-input v-model="inputPassWord" style="width: 400px" placeholder="请输入管理员密码" @change="checkPassword"/>
<p></p>
<el-button type="primary" @click="checkPassword">确认</el-button>
</div>