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