1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2025-05-01 14:49:00 +08:00

fix: 快速登陆参数错误

This commit is contained in:
zclzone 2023-12-18 22:35:36 +08:00
parent 4448ccf111
commit 60ab640aca

View File

@ -16,7 +16,7 @@
</div> </div>
<div class="w-320 flex-col px-20 py-32"> <div class="w-320 flex-col px-20 py-32">
<h2 class="f-c-c text-24 font-normal text-#6a6a6a"> <h2 class="f-c-c text-24 text-#6a6a6a font-normal">
<img src="@/assets/images/logo.png" height="50" class="mr-12" /> <img src="@/assets/images/logo.png" height="50" class="mr-12" />
{{ title }} {{ title }}
</h2> </h2>
@ -38,7 +38,7 @@
show-password-on="mousedown" show-password-on="mousedown"
placeholder="请输入密码" placeholder="请输入密码"
:maxlength="20" :maxlength="20"
@keydown.enter="handleLogin" @keydown.enter="handleLogin()"
> >
<template #prefix> <template #prefix>
<i class="i-fe:lock mr-12 opacity-20" /> <i class="i-fe:lock mr-12 opacity-20" />
@ -51,7 +51,7 @@
class="h-40 items-center" class="h-40 items-center"
palceholder="请输入验证码" palceholder="请输入验证码"
:maxlength="4" :maxlength="4"
@keydown.enter="handleLogin" @keydown.enter="handleLogin()"
> >
<template #prefix> <template #prefix>
<i class="i-fe:key mr-12 opacity-20" /> <i class="i-fe:key mr-12 opacity-20" />
@ -75,7 +75,12 @@
/> />
<div class="mt-20 flex items-center"> <div class="mt-20 flex items-center">
<n-button class="h-40 flex-1 rounded-5 text-16" type="primary" ghost @click="quickLogin"> <n-button
class="h-40 flex-1 rounded-5 text-16"
type="primary"
ghost
@click="quickLogin()"
>
一键体验 一键体验
</n-button> </n-button>
@ -83,7 +88,7 @@
class="ml-32 h-40 flex-1 rounded-5 text-16" class="ml-32 h-40 flex-1 rounded-5 text-16"
type="primary" type="primary"
:loading="loading" :loading="loading"
@click="handleLogin" @click="handleLogin()"
> >
登录 登录
</n-button> </n-button>