-
+
diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue
index 204b19bc..4459cdfa 100644
--- a/src/layout/components/Sidebar/SidebarItem.vue
+++ b/src/layout/components/Sidebar/SidebarItem.vue
@@ -18,8 +18,8 @@
{
removeToken();
};
+ const setAvatar = (value: string) => {
+ avatar.value = value;
+ };
+
return {
userId,
token,
@@ -72,7 +76,8 @@ export const useUserStore = defineStore('user', () => {
permissions,
login,
getInfo,
- logout
+ logout,
+ setAvatar
};
});
diff --git a/src/views/register.vue b/src/views/register.vue
index c2dd6a3d..ad78cf12 100644
--- a/src/views/register.vue
+++ b/src/views/register.vue
@@ -105,12 +105,12 @@ const registerRules: ElFormRules = {
const codeUrl = ref("");
const loading = ref(false);
const captchaEnabled = ref(true);
-const registerRef = ref(ElForm);
+const registerRef = ref();
// 租户列表
const tenantList = ref([]);
const handleRegister = () => {
- registerRef.value.validate(async (valid: boolean) => {
+ registerRef.value?.validate(async (valid: boolean) => {
if (valid) {
loading.value = true;
const [err] = await to(register(registerForm.value));
diff --git a/src/views/system/user/profile/userAvatar.vue b/src/views/system/user/profile/userAvatar.vue
index 07967655..5acfb768 100644
--- a/src/views/system/user/profile/userAvatar.vue
+++ b/src/views/system/user/profile/userAvatar.vue
@@ -1,6 +1,6 @@
-
![点击上传头像]()
+
@@ -140,7 +140,7 @@ const uploadImg = async () => {
const res = await uploadAvatar(formData);
open.value = false;
options.img = res.data.imgUrl;
- userStore.avatar = options.img as string
+ userStore.setAvatar(options.img as string)
proxy?.$modal.msgSuccess("修改成功");
visible.value = false;
});
diff --git a/src/views/tool/gen/index.vue b/src/views/tool/gen/index.vue
index 82d52287..cb684f8e 100644
--- a/src/views/tool/gen/index.vue
+++ b/src/views/tool/gen/index.vue
@@ -97,8 +97,8 @@
--
Gitee
From 9b28d14bc38135ad3a5f3e9b7fbb3b1af4b02c71 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: Wed, 6 Dec 2023 00:18:31 +0800
Subject: [PATCH 6/9] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=20=E5=9C=A8?=
=?UTF-8?q?=E7=BA=BF=E7=94=A8=E6=88=B7=20=E5=BC=BA=E6=8E=A8=E6=8C=89?=
=?UTF-8?q?=E9=92=AE=E7=82=B9=E5=87=BB=E5=8F=96=E6=B6=88=E6=8E=A7=E5=88=B6?=
=?UTF-8?q?=E5=8F=B0=E8=AD=A6=E5=91=8A=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/monitor/online/index.vue | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/views/monitor/online/index.vue b/src/views/monitor/online/index.vue
index 1a25dc55..d105cd77 100644
--- a/src/views/monitor/online/index.vue
+++ b/src/views/monitor/online/index.vue
@@ -63,6 +63,8 @@