mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-07 08:46:40 +08:00
fix bug
This commit is contained in:
@@ -49,8 +49,9 @@ async function commonAction(api_path: string, method: string, params = {}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 组装事件
|
// 组装事件
|
||||||
let componentEvents: { [key: string]: any } = {}
|
let componentEvents = reactive<{ [key: string]: any }>({})
|
||||||
if (!isNullOrEmptyObject(elementProps.config?.events)) {
|
watchEffect(() => {
|
||||||
|
if (!isNullOrEmptyObject(elementProps.config?.events)) {
|
||||||
for (const key in elementProps.config?.events) {
|
for (const key in elementProps.config?.events) {
|
||||||
const attr = elementProps.config?.events[key]
|
const attr = elementProps.config?.events[key]
|
||||||
const func = async () => {
|
const func = async () => {
|
||||||
@@ -58,9 +59,8 @@ if (!isNullOrEmptyObject(elementProps.config?.events)) {
|
|||||||
}
|
}
|
||||||
componentEvents[key] = func
|
componentEvents[key] = func
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
componentEvents = {}
|
})
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
Reference in New Issue
Block a user