This commit is contained in:
2022-05-06 16:37:35 +08:00
parent be61f0c5cc
commit f4eecf9bd9
352 changed files with 73665 additions and 3 deletions

View File

@@ -0,0 +1,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("Please enter your username or password!");
this.loading = false;
return ;
}
this.$nextTick(function () {
document.getElementById('login-form').submit();
});
}
}
});