From 2a30217999c92d97404a061ede19602728754cc8 Mon Sep 17 00:00:00 2001
From: "WORK\\64751" <64751245@qq.com>
Date: Thu, 4 Sep 2025 14:28:47 +0800
Subject: [PATCH] =?UTF-8?q?=E9=98=B6=E6=AE=B5=E6=80=A7=E4=BB=A3=E7=A0=81?=
=?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/main.js | 25 ++++++++++++++-----------
src/views/carbin/toolComp/screen.vue | 4 ++--
src/views/container/index.vue | 2 +-
3 files changed, 17 insertions(+), 14 deletions(-)
diff --git a/src/main.js b/src/main.js
index 5a1c8ea..ff1166b 100644
--- a/src/main.js
+++ b/src/main.js
@@ -42,19 +42,22 @@ if (!qiankunWindow.__POWERED_BY_QIANKUN__) {
const token_type = queryParams.get('token_type')
const airporId = queryParams.get('airportId')
- let oidcSession = {
- access_token: access_token,
- token_type: token_type,
- }
-
- oidcSession = JSON.stringify(oidcSession)
window.iframe_AirPortID = airporId
- sessionStorage.setItem(`oidc.user:${VITE_APP_AUTHORITY}:${VITE_APP_CLIENT_ID}`, oidcSession)
- let access_token_str = `Bearer ${access_token}`
- //设置token
- localStorage.setItem('access_token', access_token_str)
- sessionStorage.setItem('access_token', access_token_str)
+ if (access_token) {
+ let oidcSession = {
+ access_token: access_token,
+ token_type: token_type,
+ }
+
+ oidcSession = JSON.stringify(oidcSession)
+
+ sessionStorage.setItem(`oidc.user:${VITE_APP_AUTHORITY}:${VITE_APP_CLIENT_ID}`, oidcSession)
+ let access_token_str = `Bearer ${access_token}`
+ //设置token
+ localStorage.setItem('access_token', access_token_str)
+ sessionStorage.setItem('access_token', access_token_str)
+ }
setupAll({ container: '#airapp' })
//监听消息事件
diff --git a/src/views/carbin/toolComp/screen.vue b/src/views/carbin/toolComp/screen.vue
index ac011eb..ad52b08 100644
--- a/src/views/carbin/toolComp/screen.vue
+++ b/src/views/carbin/toolComp/screen.vue
@@ -80,12 +80,12 @@ watch(
ref="OutlivePlayerRef"
:options="LiveOptions"
/>
-
+
diff --git a/src/views/container/index.vue b/src/views/container/index.vue
index 46a1e25..e4843b8 100644
--- a/src/views/container/index.vue
+++ b/src/views/container/index.vue
@@ -5,7 +5,7 @@ import { RouterLink, RouterView, useRoute, useRouter } from 'vue-router'
const router = useRouter()
console.log(router)
-router.push('/plane')
+router.push({ path: '/plane', query: { airportId: window.iframe_AirPortID } })