修改页面log输出并修改tonken超时判断

This commit is contained in:
GGJ
2024-12-18 14:15:13 +08:00
parent 21831dda90
commit 8089fcb7de
43 changed files with 203 additions and 155 deletions

View File

@@ -10,16 +10,10 @@
<span style="font-size: 28px">{{ getThemeList.name || '电能质量监测系统' }}</span>
</div>
</div>
<el-form :rules="rules" ref="formRef" size="large" class="login-form" :model="form">
<el-form :rules="rules" ref="formRef" size="large" class="login-form form-one" :model="form">
<el-form-item prop="username">
<el-input
ref="usernameRef"
v-model="form.username"
type="text"
clearable
placeholder="用户名"
autocomplete="off"
>
<el-input ref="usernameRef" v-model="form.username" type="text" clearable placeholder="用户名"
autocomplete="off">
<template #prefix>
<!-- <span class="iconfont icon-yonghu" style="color: var(--el-color-primary)"></span> -->
<Icon name="fa fa-user" style="color: var(--el-color-primary); font-size: 16px" />
@@ -27,13 +21,8 @@
</el-input>
</el-form-item>
<el-form-item prop="password">
<el-input
ref="passwordRef"
v-model="form.password"
type="password"
placeholder="密码"
autocomplete="off"
>
<el-input ref="passwordRef" v-model="form.password" type="password" placeholder="密码"
autocomplete="off">
<template #prefix>
<Icon name="local-password" style="color: var(--el-color-primary); font-size: 16px" />
<!-- <span class="iconfont icon-mima" style="color: var(--el-color-primary)"></span> -->
@@ -41,13 +30,8 @@
</el-input>
</el-form-item>
<el-form-item>
<el-button
:loading="state.submitLoading"
class="submit-btn"
round
type="info"
@click="onSubmit(formRef)"
>
<el-button :loading="state.submitLoading" class="submit-btn" round type="info"
@click="onSubmit(formRef)">
登录
</el-button>
</el-form-item>
@@ -68,7 +52,7 @@
import { onMounted, onBeforeUnmount, reactive, ref, nextTick } from 'vue'
import * as pageBubble from '@/utils/pageBubble'
import { ElMessage } from 'element-plus'
import { gongkey, login,getSysConfig } from '@/api/user-boot/user'
import { gongkey, login, getSysConfig } from '@/api/user-boot/user'
import { useAdminInfo } from '@/stores/adminInfo'
import type { FormInstance, InputInstance, FormRules } from 'element-plus'
import { useRouter } from 'vue-router'
@@ -312,6 +296,7 @@ const onSubmit = async (formEl: FormInstance | undefined) => {
// background: #009688;
//background: #4d6ea1;
border-radius: 0;
&:hover {
background: var(--el-color-primary-light-5);
}