Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ui/src/api/admin/auth/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export interface CurrentUserInfo {
is_edit_password?: boolean
language?: string
nick_name: string
permissions: string[]
/** 权限位图:key 为「组(+工作空间+资源)」,value 为该组内操作授权位的按位或。 */
permissions: Record<string, number>
role: string[]
role_name?: string[]
source?: string
Expand Down
2 changes: 2 additions & 0 deletions ui/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ import zhCn from 'element-plus/es/locale/lang/zh-cn'
import App from './App.vue'
import router from '@/router/admin'
import { pinia } from '@/stores'
import permission from '@/permission/install'
import '@/styles/tailwind.css'
import '@/styles/index.scss'

const app = createApp(App)

app.use(pinia)
app.use(router)
app.use(permission)
app.use(ElementPlus, {
locale: zhCn,
})
Expand Down
Loading
Loading