From 6331268a01ec96c31a098ffd72fbaa64b3633322 Mon Sep 17 00:00:00 2001
From: junleea <354425203@qq.com>
Date: Mon, 8 Jul 2024 10:38:05 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B3=A8=E5=86=8C=EF=BC=8C?=
=?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8A=A0=E8=BD=BD=E5=8A=A8=E7=94=BB=EF=BC=8C?=
=?UTF-8?q?=E4=BB=A5=E5=8F=8Acid=E6=97=A5=E5=BF=97=E8=AF=A6=E6=83=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/user.js | 2 +-
src/utils/request.js | 5 +++
src/views/CIDLog.vue | 79 +++++++++++---------------------------------
src/views/Im.vue | 5 +--
src/views/Login.vue | 74 ++++++++++++++++++++++++++++++-----------
5 files changed, 82 insertions(+), 83 deletions(-)
diff --git a/src/api/user.js b/src/api/user.js
index bc54605..f173585 100644
--- a/src/api/user.js
+++ b/src/api/user.js
@@ -22,7 +22,7 @@ export const loginService = (loginData) => {
export const registerService = (registerData) => {
const params = new URLSearchParams();
- for (let key in loginData) {
+ for (let key in registerData) {
params.append(key, registerData[key])
}
return request.post('/user/register', params)
diff --git a/src/utils/request.js b/src/utils/request.js
index b44188d..ba70305 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -17,6 +17,11 @@ request.interceptors.response.use(
router.push("/login")
return
}
+ if(result.data.code == 7){
+ alert("该用户已存在,请重新输入!");
+ return null
+ }
+
if(result.data.code == 1){
alert("请求失败,请稍后重试!");
}else{
diff --git a/src/views/CIDLog.vue b/src/views/CIDLog.vue
index 1a59fc9..ebcd7ca 100644
--- a/src/views/CIDLog.vue
+++ b/src/views/CIDLog.vue
@@ -22,6 +22,12 @@ export default {
},
addDialogVisible: false,
updateDialogVisible: false,
+ updateForm: {
+ create_time: "",
+ script: "",
+ end: "",
+ error: "",
+ },
};
},
@@ -92,12 +98,10 @@ export default {
},
async updateButtonCID(index) {
var id = this.tableData[index].ID;
- this.updateForm.name = this.tableData[index].Name;
- this.updateForm.url = this.tableData[index].Url;
+ this.updateForm.create_time = this.tableData[index].CreatedAt;
this.updateForm.script = this.tableData[index].Script;
- this.updateForm.cidtoken = this.tableData[index].Token;
- this.updateForm.id = id;
- this.updateDialogVisible= true;
+ this.updateForm.end = this.tableData[index].Log;
+ this.updateForm.error = this.tableData[index].Error;
},
async addCID() {
this.addDialogVisible = false;
@@ -212,52 +216,11 @@ export default {
>刷新
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -268,32 +231,28 @@ export default {
:rules="updateFormRules"
label-width="70px"
>
-
+
-
-
-
-
+
-
-
- 回调地址:https://gep.ljsea.xyz/cid/callback?token={{updateForm.cidtoken}}&id={{updateForm.id}}
+
+
+
+
+
diff --git a/src/views/Im.vue b/src/views/Im.vue
index 087b9d3..5f59357 100644
--- a/src/views/Im.vue
+++ b/src/views/Im.vue
@@ -159,6 +159,7 @@ export default {
data.expire
);
this.session = data.im_session;
+ this.loading=false
//暂停定时器
this.stopInterval();
this.connectWebSocket();
@@ -285,7 +286,7 @@ export default {
this.socket = new WebSocket(socketUrl);
//打开事件
this.socket.onopen = function () {
- this.loading = false;
+ this.loading=false
confirm("连接成功");
};
this.socket.onerror = (error) => {
@@ -324,7 +325,7 @@ export default {
//console.log("to_user_id:", this.to_user_id, this.to_user_name);
this.startInterval();
- setTimeout(() => this.loading=false, 3000);
+ //setTimeout(() => this.loading=false, 3000);
//this.connectWebSocket();
},
diff --git a/src/views/Login.vue b/src/views/Login.vue
index 1938564..d94ec77 100644
--- a/src/views/Login.vue
+++ b/src/views/Login.vue
@@ -78,7 +78,9 @@
>
- 注册
+ 注册
返回
@@ -86,13 +88,13 @@
-
二维码状态: {{qr_status}}
+
二维码状态: {{ qr_status }}