fix: 主体身份保存按钮同步草稿状态

This commit is contained in:
GouJ committed 2026-09-25 00:01:55 +08:00
1 parent 32145595d0
commit 70fc636195
1 file changed
+4 -1
@@ -69,8 +69,11 @@ function save() {
>{{ module === 'character' ? '锁定演员身份' : '锁定身份' }}</NCheckbox
>
<div class="page-form-actions">
<NButton :disabled="disabled" type="primary" attr-type="submit">保存主体身份</NButton>
<NButton :disabled="disabled || !dirty" type="primary" attr-type="submit">{{
dirty ? '保存主体身份' : '已保存'
}}</NButton>
<span v-if="dirty" class="text-xs text-muted">有未保存修改</span>
<span v-else class="text-xs text-muted">当前内容已保存到项目</span>
</div>
</fieldset>
</AppForm>