2.4.7 优化过滤 新增重置任务

This commit is contained in:
2026-04-01 13:27:27 +08:00
parent 466a853905
commit b2f9dbf2a2
11 changed files with 160 additions and 60 deletions

View File

@@ -86,7 +86,8 @@
<PermissionMask permission-key="webAi" title="自动私信工作台未开通" description="您当前没有使用自动私信功能的权限"
:placeholder-image="placeholderWebAi" :contacts="serviceContacts">
<div v-if="autoDmMode === 'config'" class="h-full w-full bg-slate-50 overflow-auto">
<ConfigPage @go-to-browser="handleGoToBrowser" @logout="$emit('logout')" />
<ConfigPage @go-to-browser="handleGoToBrowser" @logout="$emit('logout')"
@config-updated="handleConfigUpdated" />
</div>
<div v-show="autoDmMode === 'browser'" class="h-full w-full">
<YoloBrowser v-bind="$attrs" :nav-sidebar-width="navSidebarWidth" @go-back="handleBackToConfig"
@@ -256,6 +257,12 @@ const handleStopAll = () => {
emit('stop-all')
}
// 处理配置更新事件
const handleConfigUpdated = () => {
// 触发自定义事件通知 YoloBrowser 重新加载配置
window.dispatchEvent(new CustomEvent('config-updated'))
}
// Watch for view changes to manage native Electron BrowserViews
watch(currentView, async (newVal, oldVal) => {
// 懒加载 Web 端 iframe仅非 Electron