Merge pull request #10147 from dataease/dev-v2

merge fix
This commit is contained in:
fit2cloudrd 2024-06-06 16:16:50 +08:00 committed by GitHub
commit 2c2e8ad124
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 5 deletions

View File

@ -1,6 +1,6 @@
<script lang="ts" setup>
import noLic from './nolic.vue'
import { ref, useAttrs, onMounted, watch } from 'vue'
import { ref, useAttrs, onMounted } from 'vue'
import { execute, randomKey, formatArray } from './convert'
import { load, loadDistributed, xpackModelApi } from '@/api/plugin'
import { useCache } from '@/hooks/web/useCache'
@ -81,7 +81,11 @@ const storeCacheProxy = byteArray => {
}
const pluginProxy = ref(null)
const invokeMethod = param => {
pluginProxy.value['invokeMethod'](param)
if (pluginProxy.value['invokeMethod']) {
pluginProxy.value['invokeMethod'](param)
} else {
pluginProxy.value[param.methodName](param.args)
}
}
onMounted(async () => {

View File

@ -117,8 +117,12 @@ const handleLogin = () => {
if (!xpackLoadFail.value && xpackInvalidPwd.value?.invokeMethod) {
const param = {
methodName: 'init',
args: () => {
duringLogin.value = false
args: r => {
duringLogin.value = !!r
if (r) {
const queryRedirectPath = getCurLocation()
router.push({ path: queryRedirectPath })
}
}
}
xpackInvalidPwd?.value.invokeMethod(param)

@ -1 +1 @@
Subproject commit e55d5ef12d98a142487a29b62343332f4884a3a2
Subproject commit a12eea394d8d5edf2941988819b08676e512a11e