|
|
|
|
@ -1,8 +1,20 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="w-login-content">
|
|
|
|
|
<svg style="display: none;">
|
|
|
|
|
<defs>
|
|
|
|
|
<filter id="WEffectNoiseBgFilter" color-interpolation-filters="linearRGB" filterUnits="objectBoundingBox"
|
|
|
|
|
primitiveUnits="userSpaceOnUse">
|
|
|
|
|
<feTurbulence type="turbulence" baseFrequency=".1 .1" numOctaves="100" seed="100" stitchTiles="stitch"
|
|
|
|
|
x="-100%" y="-100%" width="300%" height="300%" result="turbulence" />
|
|
|
|
|
<feDisplacementMap in="SourceGraphic" in2="turbulence" scale="200" xChannelSelector="R" yChannelSelector="A"
|
|
|
|
|
x="-100%" y="-100%" width="300%" height="300%" result="displacementMap" />
|
|
|
|
|
</filter>
|
|
|
|
|
</defs>
|
|
|
|
|
</svg>
|
|
|
|
|
|
|
|
|
|
<div class="w-login-outer">
|
|
|
|
|
<div></div>
|
|
|
|
|
<div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="w-login-form">
|
|
|
|
|
<div>你好!<br />欢迎登录{{ title }}</div>
|
|
|
|
|
<div><input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号" /></div>
|
|
|
|
|
@ -22,10 +34,10 @@
|
|
|
|
|
<span v-if="!loading">登 录</span>
|
|
|
|
|
<span v-else>登 录 中...</span>
|
|
|
|
|
</el-button>
|
|
|
|
|
<div style="text-align: right; position: absolute; top: 0; right: 1rem;"><el-link :underline="false" type="primary" href="/bi/">展示大屏</el-link></div>
|
|
|
|
|
<div class="copy">{{ copy }} </div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
@ -44,6 +56,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
|
|
const title = import.meta.env.VITE_APP_TITLE;
|
|
|
|
|
const copy = import.meta.env.VITE_APP_COPY;
|
|
|
|
|
const color = import.meta.env.VITE_APP_COLOR;
|
|
|
|
|
console.debug("login", title, copy, color);
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
useSettingsStore().title = "登录"
|
|
|
|
|
@ -97,16 +110,16 @@ function login() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function handleLogin() {
|
|
|
|
|
if(!loginForm.value.username){
|
|
|
|
|
if (!loginForm.value.username) {
|
|
|
|
|
ElMessage.error("请输入帐号");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(!loginForm.value.password){
|
|
|
|
|
if (!loginForm.value.password) {
|
|
|
|
|
ElMessage.error("请输入帐号");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(captchaEnabled.value){
|
|
|
|
|
if(!loginForm.value.code) {
|
|
|
|
|
if (captchaEnabled.value) {
|
|
|
|
|
if (!loginForm.value.code) {
|
|
|
|
|
ElMessage.error("请输入验证码");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|