2024年4月7日

This commit is contained in:
ddmt 2024-04-07 18:37:02 +08:00
parent 80f89c7b7a
commit 0ab329e3e0

View File

@ -52,6 +52,8 @@
</template>
<script>
import { Message } from 'element-ui'
export default {
name: 'loGin',
data () {
@ -88,7 +90,7 @@ export default {
methods: {
login () {
if (this.form.username === '' && this.form.password === '') {
alert('账号或密码不能为空')
Message.error('账号或密码不能为空')
} else {
this.$router.push('/index')
}