Trim admin runtime imports
This commit is contained in:
@@ -20,7 +20,7 @@ import {
|
||||
getQQAuthorizeUrlApi,
|
||||
getWeChatAuthorizeUrlApi,
|
||||
getWeComAuthorizeUrlApi,
|
||||
} from '#/api/core';
|
||||
} from '#/api/core/oauth';
|
||||
import { getPreferencesConfigApi } from '#/api/core/ui-config';
|
||||
import { useAuthStore } from '#/store';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
import type { OAuthApi } from '#/api/core';
|
||||
import type { OAuthApi } from '#/api/core/oauth';
|
||||
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { useRoute, useRouter } from 'vue-router';
|
||||
@@ -8,7 +8,8 @@ import { useAccessStore, useUserStore } from '@vben/stores';
|
||||
|
||||
import { ElMessage } from 'element-plus';
|
||||
|
||||
import { getAccessCodesApi, oauthCallbackApi } from '#/api/core';
|
||||
import { getAccessCodesApi } from '#/api/core/auth';
|
||||
import { oauthCallbackApi } from '#/api/core/oauth';
|
||||
|
||||
defineOptions({ name: 'OAuthCallback' });
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
import type { User } from '#/api/core';
|
||||
import type { User } from '#/api/core/user';
|
||||
|
||||
import { ref } from 'vue';
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
deleteUserApi,
|
||||
getUserListApi,
|
||||
resetUserPasswordApi,
|
||||
} from '#/api/core';
|
||||
} from '#/api/core/user';
|
||||
import { UserAvatar } from '#/components/user-avatar';
|
||||
import { useZqTable } from '#/components/zq-table';
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<script lang="ts" setup>
|
||||
import type { User } from '#/api/core';
|
||||
import type { User } from '#/api/core/user';
|
||||
|
||||
import { computed, ref } from 'vue';
|
||||
|
||||
import { $t } from '@vben/locales';
|
||||
|
||||
import { useVbenForm } from '#/adapter/form';
|
||||
import { createUserApi, updateUserApi } from '#/api/core';
|
||||
import { createUserApi, updateUserApi } from '#/api/core/user';
|
||||
import { ZqDrawer } from '#/components/zq-drawer';
|
||||
|
||||
import { getFormSchema } from '../data';
|
||||
|
||||
Reference in New Issue
Block a user