diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c265b5..f6549a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ * 分组添加实例数量标识 * 优化登录逻辑 * 默认登录有效期更改为当天有效 +* 优化脚本库新增脚本时序号自动累加 * 修复一些小bug ## [2.3.0](https://github.com/chaos-zhu/easynode/releases) (2024-10-24) diff --git a/web/src/views/scripts/index.vue b/web/src/views/scripts/index.vue index af60728..2b0989e 100644 --- a/web/src/views/scripts/index.vue +++ b/web/src/views/scripts/index.vue @@ -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 }