Skip to content

Commit

Permalink
fix: 手机版样式 (Close Chanzhaoyu#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerwin committed Jun 14, 2023
1 parent 570ccef commit dff17a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/common/Setting/User.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import { NButton, NDataTable, NModal, NSelect, NTag, useDialog, useMessage } fro
import { Status, UserInfo, UserRole, userRoleOptions } from './model'
import { fetchGetUsers, fetchUpdateUserRole, fetchUpdateUserStatus } from '@/api'
import { t } from '@/locales'
import { useBasicLayout } from '@/hooks/useBasicLayout'
const ms = useMessage()
const dialog = useDialog()
const { isMobile } = useBasicLayout()
const loading = ref(false)
const show = ref(false)
const handleSaving = ref(false)
Expand Down Expand Up @@ -214,7 +216,7 @@ onMounted(async () => {
</div>
</div>

<NModal v-model:show="show" :auto-focus="false" preset="card" style="width:50%;">
<NModal v-model:show="show" :auto-focus="false" preset="card" :style="{ width: !isMobile ? '50%' : '100%' }">
<div class="p-4 space-y-5 min-h-[200px]">
<div class="space-y-6">
<div class="flex items-center space-x-4">
Expand Down

0 comments on commit dff17a9

Please sign in to comment.