Merge branch 'feature/refactor' of github.com:DLmaster361/AUTO_MAA into feature/refactor

This commit is contained in:
DLmaster361
2025-09-02 21:52:50 +08:00
5 changed files with 48 additions and 92 deletions

View File

@@ -438,17 +438,8 @@ const handleConfirmTemplate = async () => {
// 刷新脚本列表
await loadScripts()
// 跳转到编辑页面
router.push({
path: `/scripts/${createResult.scriptId}/edit`,
state: {
scriptData: {
id: createResult.scriptId,
type: 'General',
config: createResult.data,
},
},
})
// 跳转到编辑页面不传递state数据让编辑页面从API重新加载最新配置
router.push(`/scripts/${createResult.scriptId}/edit`)
}
} catch (error) {
console.error('使用模板创建脚本失败:', error)