diff --git a/src/api/index.js b/src/api/index.js index bbb9df8..38843fa 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1,4 +1,4 @@ -import request from '@/utils/http' +import { request } from '@/utils' export default { getUser: () => request.get('/user'), diff --git a/src/components/common/AppProvider.vue b/src/components/common/AppProvider.vue index 718b0b7..9b7bdc7 100644 --- a/src/components/common/AppProvider.vue +++ b/src/components/common/AppProvider.vue @@ -18,7 +18,7 @@ import { defineComponent, h } from 'vue' import { useLoadingBar, useDialog, useMessage, useNotification } from 'naive-ui' import { useCssVar } from '@vueuse/core' import { kebabCase } from 'lodash-es' -import { setupMessage, setupDialog } from '@/utils/common/naiveTools' +import { setupMessage, setupDialog } from '@/utils' import { naiveThemeOverrides } from '~/settings' function setupCssVar() { diff --git a/src/components/icon/TheIcon.vue b/src/components/icon/TheIcon.vue index adb58c5..62edef1 100644 --- a/src/components/icon/TheIcon.vue +++ b/src/components/icon/TheIcon.vue @@ -1,5 +1,5 @@ diff --git a/src/layout/components/header/components/UserAvatar.vue b/src/layout/components/header/components/UserAvatar.vue index 9a06b2e..a8b7b67 100644 --- a/src/layout/components/header/components/UserAvatar.vue +++ b/src/layout/components/header/components/UserAvatar.vue @@ -8,8 +8,8 @@