add balance setting in creating account page

This commit is contained in:
MaysWind
2020-12-10 03:39:25 +08:00
parent 7a94c6cdeb
commit 216c84b3a3
4 changed files with 55 additions and 2 deletions
+2 -1
View File
@@ -172,7 +172,7 @@ export default {
getAccount: ({ id }) => {
return axios.get('v1/accounts/get.json?id=' + id);
},
addAccount: ({ category, type, name, icon, color, currency, comment, subAccounts }) => {
addAccount: ({ category, type, name, icon, color, currency, balance, comment, subAccounts }) => {
return axios.post('v1/accounts/add.json', {
category,
type,
@@ -180,6 +180,7 @@ export default {
icon,
color,
currency,
balance,
comment,
subAccounts
});