From 40a116b889c2f086958164697c263badce1aa078 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Fri, 22 Nov 2024 15:54:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A3=B3=E9=A1=BB=E8=A6=81token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/Login.vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/views/login/Login.vue b/src/views/login/Login.vue index 4d87f61..4dae2cd 100644 --- a/src/views/login/Login.vue +++ b/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() { },