From 65287e85c7d104e490c74c50db5f591e122ee30d Mon Sep 17 00:00:00 2001 From: haoxr <1490493387@qq.com> Date: Mon, 6 Feb 2023 01:04:16 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E5=91=BD=E5=90=8Dlogin?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: e5bbbd05ecb8fda2083406c4e166427413ebd758 --- src/store/modules/user.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 60ce7caa..0eff5a6d 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -5,7 +5,7 @@ import { loginApi, logoutApi } from '@/api/auth'; import { getUserInfo } from '@/api/user'; import { resetRouter } from '@/router'; import { store } from '@/store'; -import { LoginData } from '@/api/auth/types'; +import { LoginType } from '@/api/auth/types'; import { ref } from 'vue'; import { UserInfo } from '@/api/user/types'; @@ -20,7 +20,7 @@ export const useUserStore = defineStore('user', () => { // actions // 登录 - function login(loginData: LoginData) { + function login(loginData: LoginType) { return new Promise((resolve, reject) => { loginApi(loginData) .then(response => {