From dcf9c9e0410fe1186239e3f8d6f7bdc789c08010 Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期三, 05 六月 2024 18:00:39 +0800
Subject: [PATCH] 1

---
 src/views/login/components/passwordForm.vue |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/views/login/components/passwordForm.vue b/src/views/login/components/passwordForm.vue
index 382bc97..fd366da 100644
--- a/src/views/login/components/passwordForm.vue
+++ b/src/views/login/components/passwordForm.vue
@@ -18,9 +18,11 @@
 </template>
 
 <script>
+//import io from 'socket.io-client';
 export default {
 	data() {
 		return {
+			socket: null,  
 			userType: 'admin',
 			form: {
 				user: "admin",
@@ -52,7 +54,7 @@
 	mounted() {
 		//this.$HTTP.get('/api/blade-sync/outer-app-config/appStatus')
 	},
-	methods: {
+	methods: {  
 		async login() {
 			var validate = await this.$refs.loginForm.validate().catch(() => { })
 			if (!validate) { return false }
@@ -82,7 +84,7 @@
 				} else {
 					this.$message({
 						showClose: true,
-						message: res.msg,
+						message: res.msg || res.error_description,
 						type: 'error'
 					});
 				}

--
Gitblit v1.9.3