|
@@ -3,13 +3,14 @@
|
|
<el-form ref="loginRef" :model="loginForm" :rules="loginRules" class="login-form">
|
|
<el-form ref="loginRef" :model="loginForm" :rules="loginRules" class="login-form">
|
|
<h3 class="title">股权后台管理系统</h3>
|
|
<h3 class="title">股权后台管理系统</h3>
|
|
<el-form-item prop="username">
|
|
<el-form-item prop="username">
|
|
- <el-input v-model="loginForm.username" type="text" size="large" auto-complete="off" autocomplete="new-password" placeholder="账号">
|
|
|
|
|
|
+ <el-input v-model="loginForm.username" type="text" size="large" auto-complete="off" autocomplete="new-password"
|
|
|
|
+ placeholder="账号">
|
|
<template #prefix><svg-icon icon-class="user" class="el-input__icon input-icon" /></template>
|
|
<template #prefix><svg-icon icon-class="user" class="el-input__icon input-icon" /></template>
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item prop="password">
|
|
<el-form-item prop="password">
|
|
- <el-input v-model="loginForm.password" type="password" size="large" auto-complete="off" autocomplete="new-password" placeholder="密码"
|
|
|
|
- @keyup.enter="handleLogin">
|
|
|
|
|
|
+ <el-input v-model="loginForm.password" type="password" size="large" auto-complete="off"
|
|
|
|
+ autocomplete="new-password" placeholder="密码" @keyup.enter="handleLogin">
|
|
<template #prefix><svg-icon icon-class="password" class="el-input__icon input-icon" /></template>
|
|
<template #prefix><svg-icon icon-class="password" class="el-input__icon input-icon" /></template>
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -107,27 +108,6 @@ function handleLogin() {
|
|
return acc;
|
|
return acc;
|
|
}, {});
|
|
}, {});
|
|
router.push({ path: redirect.value || "/", query: otherQueryParams });
|
|
router.push({ path: redirect.value || "/", query: otherQueryParams });
|
|
-
|
|
|
|
- // 建立 WebSocket 连接
|
|
|
|
- const ws = new WebSocket("ws://192.168.100.119:8080/websocket");
|
|
|
|
-
|
|
|
|
- ws.onopen = () => { // 连接建立后执行
|
|
|
|
- console.log("WebSocket connection established");
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
- ws.onmessage = (event) => {
|
|
|
|
- const { data } = event;
|
|
|
|
- console.log(data, '>>>>>>>event长连接data')
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- ws.onerror = (error) => {
|
|
|
|
- console.error("WebSocket error:", error);
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
- ws.onclose = () => {
|
|
|
|
- console.log("WebSocket connection closed");
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
loading.value = false;
|
|
loading.value = false;
|
|
// 重新获取验证码
|
|
// 重新获取验证码
|