From 31b7e874bac09e8a82c938c75e36452580dfddd6 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Wed, 26 Feb 2025 17:41:00 +0800
Subject: [PATCH] 统一换成Vant组件和修改列表点击事件范围

---
 src/store/user.ts |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/store/user.ts b/src/store/user.ts
index fd32d00..8aa4cf8 100644
--- a/src/store/user.ts
+++ b/src/store/user.ts
@@ -22,7 +22,7 @@
 import { setStore, getStore } from '@/utils/store'
 import { validatenull } from '@/utils/validate'
 import md5 from 'js-md5'
-import { ElMessage } from 'element-plus';
+import { showNotify } from 'vant';
 import { setToken, setRefreshToken, removeToken, removeRefreshToken } from '@/utils/auth'
 
 const user = {
@@ -59,7 +59,7 @@
           .then((res) => {
             const data = res.data
             if (data.error_description) {
-              ElMessage.error(data.error_description)
+              showNotify({ type: 'danger', message: data.error_description })
             } else {
               commit('SET_LOGIN_FLAG', true)
               commit('SET_TOKEN', data.access_token)

--
Gitblit v1.9.3