perf: iframe嵌入式新开页面缺失token

This commit is contained in:
fit2cloud-chenyw 2024-03-19 11:21:08 +08:00
parent 34c17e4499
commit 9efa9c2c62
4 changed files with 4 additions and 18 deletions

View File

@ -12,5 +12,5 @@ export interface BusiTreeRequest {
busiFlag?: string busiFlag?: string
leaf?: boolean leaf?: boolean
weight?: number weight?: number
sortType: string sortType?: string
} }

View File

@ -100,15 +100,8 @@ const newWindowHandler = ref(null)
let p = null let p = null
const XpackLoaded = () => { const XpackLoaded = () => {
const pm = {
methodName: 'newWindowReady',
args: null
}
if (newWindowHandler?.value) {
newWindowHandler.value.invokeMethod(pm)
p(true) p(true)
} }
}
// //
onMounted(async () => { onMounted(async () => {
await new Promise(r => { await new Promise(r => {

View File

@ -204,15 +204,8 @@ const newWindowHandler = ref(null)
let p = null let p = null
const XpackLoaded = () => { const XpackLoaded = () => {
const pm = {
methodName: 'newWindowReady',
args: null
}
if (newWindowHandler?.value) {
newWindowHandler.value.invokeMethod(pm)
p(true) p(true)
} }
}
onMounted(async () => { onMounted(async () => {
await new Promise(r => { await new Promise(r => {
if (!newWindowHandler?.value) { if (!newWindowHandler?.value) {

@ -1 +1 @@
Subproject commit 6fcd9f491e16f8ea015723a5230449a12b6eec18 Subproject commit 45c3ff3e6b1fade203d2206eaaa76347781b54bd