feat: 打开渠道与脚本自动化分离

This commit is contained in:
DEV_DSW
2026-03-12 17:05:16 +08:00
parent f084e47c58
commit 236f4c7dc1
12 changed files with 201 additions and 132 deletions

View File

@@ -33,6 +33,7 @@
<script setup lang="ts">
import { computed } from 'vue'
import { taskCenterList, taskCenterItem } from '@constant/taskCenterList'
import { channels } from '@constant/channel'
import emitter from '@utils/emitter'
const taskList = computed(() => taskCenterList)
@@ -43,6 +44,12 @@ const handleTaskItem = (item: taskCenterItem) => {
return
}
// 一键打开各渠道
if (item.type === 'channel') {
window.api.openChannel(channels)
return
}
// 操作房型
emitter.emit('OPERATION_CHANNEL', item)
}