1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| if (parent.callback) {
| //如果是在子框架内就把首页刷新
| parent.callback();
| }
| var loginApp = new Vue({
| el: '.login-main',
| data: {
| username: '',
| password: '',
| loading: false
| },
| methods: {
| login: function () {
| this.loading = true;
| if (this.username === "" || this.password === "") {
| this.$message.error("请输入您的用户名或密码!");
| this.loading = false;
| return ;
| }
| this.$nextTick(function () {
| document.getElementById('login-form').submit();
| });
| }
| }
| });
|
|