2024年4月7日
This commit is contained in:
parent
80f89c7b7a
commit
0ab329e3e0
@ -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')
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user