refactor(queue): 重构队列数据获取逻辑

- 使用专门的定时项和队列项 API 获取数据,提高数据获取效率和准确性
- 优化数据处理逻辑,移除不必要的中间步骤
- 提高代码可读性和可维护性
This commit is contained in:
2025-08-15 21:40:39 +08:00
parent b30073cb80
commit 2f182519a5
2 changed files with 66 additions and 88 deletions

View File

@@ -182,7 +182,7 @@ const loadOptions = async () => {
const addQueueItem = async () => {
editingQueueItem.value = null
Object.assign(form, {
script: '',
script: null,
})
// 确保在打开弹窗时加载脚本选项