Browse Source

壳须要token

master
pengjun 12 months ago
parent
commit
40a116b889
  1. 15
      src/views/login/Login.vue

15
src/views/login/Login.vue

@ -209,8 +209,16 @@ export default {
window.sessionStorage.setItem("userId", res.data.userId); //ID
window.sessionStorage.setItem("user", this.form.Username);
// (token 2024-11-22)
if (this.$peisAPI) {
this.$peisAPI.lazyLoad(); // dll
this.$peisAPI.lazyLoadReportTemplate(res.data.access_token); //
}
this.$router.push({ path: "/home" });
this.$store.state.changepassword = this.form.Password;
} else {
this.$message.warning(res.message);
}
@ -221,13 +229,6 @@ export default {
})
}
});
//
if (this.$peisAPI) {
this.$peisAPI.lazyLoad(); // dll
this.$peisAPI.lazyLoadReportTemplate(); //
}
},
},
created() { },

Loading…
Cancel
Save