feat: 打开渠道与脚本自动化分离
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user