diff --git a/Web/src/components/TransactionDetail.vue b/Web/src/components/TransactionDetail.vue index 19ad75a..e5c8609 100644 --- a/Web/src/components/TransactionDetail.vue +++ b/Web/src/components/TransactionDetail.vue @@ -256,7 +256,7 @@ const onSubmit = async () => { const selectClassify = (classify) => { editForm.classify = classify - if(editForm.id > 0 && editForm.type > 0) { + if(editForm.id > 0 && editForm.type >= 0) { // 直接保存 onSubmit() } diff --git a/Web/src/views/StatisticsView.vue b/Web/src/views/StatisticsView.vue index 4e8bae0..f742fe1 100644 --- a/Web/src/views/StatisticsView.vue +++ b/Web/src/views/StatisticsView.vue @@ -100,7 +100,6 @@ v-for="(category) in expenseCategoriesView" :key="category.classify" class="category-item clickable" - :class="{ 'highlighted': category._highlighted }" @click="goToCategoryBills(category.classify, 0)" >