code refactor

This commit is contained in:
MaysWind
2023-08-13 20:13:27 +08:00
parent 8bed529d05
commit eb9a2ac2e0
3 changed files with 14 additions and 8 deletions
+4 -4
View File
@@ -222,12 +222,12 @@ import {
export default {
data() {
const transactionTagsStore = useTransactionTagsStore();
const newTransactionTag = transactionTagsStore.generateNewTransactionTagModel();
return {
newTag: null,
editingTag: {
id: '',
name: ''
},
editingTag: newTransactionTag,
loading: true,
updating: false,
tagUpdating: {},
+4 -4
View File
@@ -154,12 +154,12 @@ export default {
'f7router'
],
data() {
const transactionTagsStore = useTransactionTagsStore();
const newTransactionTag = transactionTagsStore.generateNewTransactionTagModel();
return {
newTag: null,
editingTag: {
id: '',
name: ''
},
editingTag: newTransactionTag,
loading: true,
loadingError: null,
showHidden: false,