style: 优化前端登录模块 API 路径
This commit is contained in:
parent
a159c86201
commit
43590bf66e
@ -8,7 +8,7 @@ import {
|
||||
import type { MessageReturn } from '@arco-design/web-vue/es/message/interface';
|
||||
import type { RouteRecordNormalized } from 'vue-router';
|
||||
import defaultSettings from '@/config/settings.json';
|
||||
import { listRoute } from '@/api/auth/login';
|
||||
import { listRoute } from '@/api/auth';
|
||||
import { listOption } from '@/api/common';
|
||||
import getFile from '@/utils/file';
|
||||
import { AppState, Config } from './types';
|
||||
|
@ -7,7 +7,7 @@ import {
|
||||
socialLogin as userSocialLogin,
|
||||
logout as userLogout,
|
||||
getUserInfo,
|
||||
} from '@/api/auth/login';
|
||||
} from '@/api/auth';
|
||||
import { getImageCaptcha as getCaptcha } from '@/api/common/captcha';
|
||||
import { setToken, clearToken } from '@/utils/auth';
|
||||
import { removeRouteListener } from '@/utils/route-listener';
|
||||
|
@ -57,7 +57,7 @@
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { useStorage } from '@vueuse/core';
|
||||
import { useUserStore } from '@/store';
|
||||
import { LoginReq } from '@/api/auth/login';
|
||||
import { LoginReq } from '@/api/auth';
|
||||
import { ValidatedError } from '@arco-design/web-vue';
|
||||
import { encryptByRsa } from '@/utils/encrypt';
|
||||
import { useRouter } from 'vue-router';
|
||||
|
@ -44,7 +44,7 @@
|
||||
import { useRouter } from 'vue-router';
|
||||
import { ValidatedError } from '@arco-design/web-vue';
|
||||
import { useUserStore } from '@/store';
|
||||
import { EmailLoginReq } from '@/api/auth/login';
|
||||
import { EmailLoginReq } from '@/api/auth';
|
||||
import { getMailCaptcha } from '@/api/common/captcha';
|
||||
|
||||
const { proxy } = getCurrentInstance() as any;
|
||||
|
@ -43,7 +43,7 @@
|
||||
import { getCurrentInstance, ref, toRefs, reactive, computed } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { useUserStore } from '@/store';
|
||||
import { LoginReq } from '@/api/auth/login';
|
||||
import { LoginReq } from '@/api/auth';
|
||||
|
||||
const { proxy } = getCurrentInstance() as any;
|
||||
const { t } = useI18n();
|
||||
|
@ -81,7 +81,7 @@
|
||||
import { useAppStore } from '@/store';
|
||||
import getFile from '@/utils/file';
|
||||
import useResponsive from '@/hooks/responsive';
|
||||
import { socialAuth } from '@/api/auth/login';
|
||||
import { socialAuth } from '@/api/auth';
|
||||
import AccountLogin from './components/account-login.vue';
|
||||
import PhoneLogin from './components/phone-login.vue';
|
||||
import EmailLogin from './components/email-login.vue';
|
||||
|
@ -83,7 +83,7 @@
|
||||
listSocial,
|
||||
unbindSocial,
|
||||
} from '@/api/system/user-center';
|
||||
import { socialAuth } from '@/api/auth/login';
|
||||
import { socialAuth } from '@/api/auth';
|
||||
|
||||
const { proxy } = getCurrentInstance() as any;
|
||||
const { t } = useI18n();
|
||||
|
Loading…
Reference in New Issue
Block a user