2.4.7 优化过滤 新增重置任务
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user