forked from github/dataease
fix(X-Pack): 社区版无法打开仪表板编辑页面
This commit is contained in:
parent
560e53242c
commit
eb3f667ca6
@ -110,7 +110,10 @@ onMounted(async () => {
|
||||
distributed = wsCache.get(key)
|
||||
}
|
||||
if (isNull(distributed)) {
|
||||
setTimeout(() => {
|
||||
emits('loadFail')
|
||||
loading.value = false
|
||||
}, 1000)
|
||||
return
|
||||
}
|
||||
if (distributed) {
|
||||
|
@ -98,11 +98,14 @@ const pluginProxy = ref(null)
|
||||
const invokeMethod = param => {
|
||||
if (pluginProxy.value['invokeMethod']) {
|
||||
pluginProxy.value['invokeMethod'](param)
|
||||
} else {
|
||||
} else if (param.methodName && pluginProxy.value[param.methodName]) {
|
||||
pluginProxy.value[param.methodName](param.args)
|
||||
}
|
||||
}
|
||||
|
||||
const emits = defineEmits(['loadFail'])
|
||||
defineExpose({
|
||||
invokeMethod
|
||||
})
|
||||
onMounted(async () => {
|
||||
const key = 'xpack-model-distributed'
|
||||
let distributed = false
|
||||
@ -115,7 +118,10 @@ onMounted(async () => {
|
||||
distributed = wsCache.get(key)
|
||||
}
|
||||
if (isNull(distributed)) {
|
||||
setTimeout(() => {
|
||||
emits('loadFail')
|
||||
loading.value = false
|
||||
}, 1000)
|
||||
return
|
||||
}
|
||||
if (distributed) {
|
||||
@ -143,11 +149,6 @@ onMounted(async () => {
|
||||
loadComponent()
|
||||
}
|
||||
})
|
||||
|
||||
const emits = defineEmits(['loadFail'])
|
||||
defineExpose({
|
||||
invokeMethod
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
Loading…
Reference in New Issue
Block a user