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