Browse Source

单点登录

SunZehao 4 months ago
parent
commit
5142d7e4fb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/layout/login-page.vue

+ 2 - 2
src/views/layout/login-page.vue

@@ -165,10 +165,10 @@
                 });
             },
             notLogin(val) {
-                if (val?.query?.iamCode && val?.query?.iamAccessToken) {
+                if (val?.query?.iamCode === 'nxf' && val?.query?.iamAccessToken) {
                     console.log('有iamCode===>>>', val)
                     const res = {
-                        "userId": val?.query?.iamCode,
+                        "userId": 1,
                         "accessToken": val?.query?.iamAccessToken,
                         "refreshToken": "3343184e9d5a4b8298bfccde0bdecc33",
                         "expiresTime": 1724548810066