登录和首页优化

This commit is contained in:
暮光:城中城
2019-06-28 22:03:52 +08:00
parent eb7112b956
commit 9d6ab9e159
8 changed files with 60 additions and 41 deletions

View File

@@ -78,6 +78,7 @@
mounted: function () {
app = this;
global.vue.$app = this;
this.getUserInfo();
this.checkSystemUpgrade();
},
methods: {
@@ -97,6 +98,15 @@
toast.notOpen();
}
},
userSignOut() {
this.common.post(this.apilist1.userLogout, {}, function (json) {
location.reload();
});
},
getUserInfo() {
this.common.post(this.apilist1.getUserBaseInfo, {}, function (json) {
});
},
checkSystemUpgrade() {
this.common.post(this.apilist1.systemUpgradeInfo, {}, function (json) {
if (!!json.data) {