mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-08-27 11:10:12 +08:00
fix #947
This commit is contained in:
@@ -6,6 +6,10 @@ import { hexToRgb } from '@layouts/utils'
|
|||||||
|
|
||||||
const vuetifyTheme = useTheme()
|
const vuetifyTheme = useTheme()
|
||||||
|
|
||||||
|
// 从Vuex Store中获取信息
|
||||||
|
const store = useStore()
|
||||||
|
const superUser = store.state.auth.superUser
|
||||||
|
|
||||||
const options = controlledComputed(
|
const options = controlledComputed(
|
||||||
() => vuetifyTheme.name.value,
|
() => vuetifyTheme.name.value,
|
||||||
() => {
|
() => {
|
||||||
@@ -129,6 +133,7 @@ onMounted(() => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<VBtn
|
<VBtn
|
||||||
|
v-if="superUser"
|
||||||
block
|
block
|
||||||
to="/history"
|
to="/history"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user