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
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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user