feat: 添加存款分类设置功能,优化预算管理界面
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 26s
Docker Build & Deploy / Deploy to Production (push) Successful in 8s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s

This commit is contained in:
孙诚
2026-01-07 20:31:12 +08:00
parent a1bb7ad5e1
commit aa8fc7a8b3
4 changed files with 300 additions and 15 deletions

View File

@@ -2,7 +2,7 @@
<PopupContainer
v-model="visible"
:title="isEdit ? `编辑${getCategoryName(form.category)}预算` : `新增${getCategoryName(form.category)}预算`"
height="85%"
height="75%"
>
<div class="add-budget-form">
<van-form>
@@ -175,14 +175,6 @@ const fetchCategories = async () => {
}
}
watch(() => form.category, (newVal, oldVal) => {
// 只有在手动切换类型且不是初始化编辑数据时才清空
// 为简单起见,如果旧值存在(即不是第一次赋值),则清空已选分类
if (oldVal !== undefined) {
form.selectedCategories = []
}
})
const onSubmit = async () => {
try {
const data = {