diff --git a/apps/web-tdesign/src/views/system/admin/index.vue b/apps/web-tdesign/src/views/system/admin/index.vue index 05c58d54..aea9a196 100644 --- a/apps/web-tdesign/src/views/system/admin/index.vue +++ b/apps/web-tdesign/src/views/system/admin/index.vue @@ -3,6 +3,14 @@ import { computed } from 'vue'; import { confirm, Page, useVbenModal } from '@vben/common-ui'; +import { + Button as TButton, + Link as TLink, + Space as TSpace, + Switch as TSwitch, +} from 'tdesign-vue-next'; + +import { message } from '#/adapter/tdesign'; import { useVbenVxeGrid } from '#/adapter/vxe-table'; import { changeAdminStatus, getAdminListByPage } from '#/api'; import { toObject } from '#/enum'; @@ -16,10 +24,6 @@ const [FormModel, formModelApi] = useVbenModal({ destroyOnClose: true, }); -import { message } from '#/adapter/tdesign'; - -import { Button as TButton, Space as TSpace, Switch as TSwitch, Link as TLink } from 'tdesign-vue-next'; - function onStatusChange(value: any, row: any) { confirm(`确认${value === 1 ? '启用' : '禁用'}用户`, `切换状态`) .then(async () => { @@ -123,7 +127,7 @@ const deptOptionsMap = computed(() => {