mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-07 16:56:40 +08:00
fix
This commit is contained in:
@@ -5,6 +5,13 @@ import { requiredValidator } from '@/@validators'
|
|||||||
import api from '@/api'
|
import api from '@/api'
|
||||||
import type { User } from '@/api/types'
|
import type { User } from '@/api/types'
|
||||||
import avatar1 from '@images/avatars/avatar-1.png'
|
import avatar1 from '@images/avatars/avatar-1.png'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
// APP
|
||||||
|
const display = useDisplay()
|
||||||
|
const appMode = computed(() => {
|
||||||
|
return localStorage.getItem('MP_APPMODE') != '0' && display.mdAndDown.value
|
||||||
|
})
|
||||||
|
|
||||||
// 提示框
|
// 提示框
|
||||||
const $toast = useToast()
|
const $toast = useToast()
|
||||||
@@ -12,6 +19,8 @@ const $toast = useToast()
|
|||||||
// 新增用户窗口
|
// 新增用户窗口
|
||||||
const addUserDialog = ref(false)
|
const addUserDialog = ref(false)
|
||||||
|
|
||||||
|
const isPasswordVisible = ref(false)
|
||||||
|
|
||||||
// 新增用户表单
|
// 新增用户表单
|
||||||
const userForm = reactive({
|
const userForm = reactive({
|
||||||
name: '',
|
name: '',
|
||||||
@@ -29,6 +38,8 @@ const accountInfo = ref<User>({
|
|||||||
is_superuser: false,
|
is_superuser: false,
|
||||||
avatar: '',
|
avatar: '',
|
||||||
is_otp: false,
|
is_otp: false,
|
||||||
|
permissions: {},
|
||||||
|
settings: {},
|
||||||
})
|
})
|
||||||
|
|
||||||
// 所有用户信息
|
// 所有用户信息
|
||||||
@@ -211,4 +222,15 @@ onMounted(() => {
|
|||||||
</VCard>
|
</VCard>
|
||||||
</VDialog>
|
</VDialog>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<VFab
|
||||||
|
icon="mdi-plus"
|
||||||
|
location="bottom"
|
||||||
|
size="x-large"
|
||||||
|
fixed
|
||||||
|
app
|
||||||
|
appear
|
||||||
|
@click="addUserDialog = true"
|
||||||
|
:class="{ 'mb-12': appMode }"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user