perf: aotu import hooks

This commit is contained in:
xingyu
2023-01-18 14:23:45 +08:00
parent fcd19e1371
commit 8c74e527a9
132 changed files with 116 additions and 308 deletions

View File

@ -31,7 +31,6 @@
</div>
</template>
<script setup lang="ts" name="Profile">
import { useI18n } from '@/hooks/web/useI18n'
import { BasicInfo, ProfileUser, ResetPwd, UserSocial } from './components/'
const { t } = useI18n()

View File

@ -13,7 +13,7 @@
<script setup lang="ts">
import type { FormRules } from 'element-plus'
import { ElMessage } from 'element-plus'
import { useI18n } from '@/hooks/web/useI18n'
import { FormSchema } from '@/types/form'
import type { FormExpose } from '@/components/Form'
import {

View File

@ -42,7 +42,7 @@
<script setup lang="ts">
import dayjs from 'dayjs'
import UserAvatar from './UserAvatar.vue'
import { useI18n } from '@/hooks/web/useI18n'
import { getUserProfileApi, ProfileVO } from '@/api/system/user/profile'
const { t } = useI18n()

View File

@ -17,8 +17,7 @@
</template>
<script setup lang="ts">
import type { FormRules, FormInstance } from 'element-plus'
import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage'
import { InputPassword } from '@/components/InputPassword'
import { updateUserPwdApi } from '@/api/system/user/profile'

View File

@ -22,7 +22,6 @@
</el-table>
</template>
<script setup lang="ts">
import { useMessage } from '@/hooks/web/useMessage'
import { SystemUserSocialTypeEnum } from '@/utils/constants'
import { getUserProfileApi, ProfileVO } from '@/api/system/user/profile'
import { socialAuthRedirect, socialUnbind } from '@/api/system/user/socialUser'