优化脚本库新增脚本时序号自动累加

This commit is contained in:
chaos-zhu 2024-11-09 23:43:02 +08:00
parent 7c15d311c1
commit c04989b951
2 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@
* 分组添加实例数量标识
* 优化登录逻辑
* 默认登录有效期更改为当天有效
* 优化脚本库新增脚本时序号自动累加
* 修复一些小bug
## [2.3.0](https://github.com/chaos-zhu/easynode/releases) (2024-10-24)

View File

@ -196,6 +196,7 @@ const isPlusActive = computed(() => $store.isPlusActive)
let addScript = () => {
formData.id = null
formData.index = scriptList.value.reduce((acc, cur) => Math.max(acc, Number(cur.index) || 0), 0) + 1
isModify.value = false
formVisible.value = true
}