From 8b5cf9a35ff9eec8d925ebf45e07f918dc506092 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Thu, 13 Mar 2025 11:47:49 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 -- src/store/modules/user.ts | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 140c70c..1fd56f0 100644 --- a/.gitignore +++ b/.gitignore @@ -27,5 +27,3 @@ pnpm-lock.yaml # 编译生成的文件 auto-imports.d.ts components.d.ts -*.js -*.js.map diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 109ce19..b714d03 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -3,6 +3,7 @@ import { getToken, removeToken, setToken } from '@/utils/auth'; import { login as loginApi, logout as logoutApi, getInfo as getUserInfo } from '@/api/login'; import { LoginData } from '@/api/types'; import defAva from '@/assets/images/profile.jpg'; +import { defineStore } from 'pinia'; import { ref } from 'vue'; export const useUserStore = defineStore('user', () => {