mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 16:07:33 +08:00
support account color
This commit is contained in:
+4
-2
@@ -169,23 +169,25 @@ export default {
|
||||
getAccount: ({ id }) => {
|
||||
return axios.get('v1/accounts/get.json?id=' + id);
|
||||
},
|
||||
addAccount: ({ category, type, name, icon, currency, comment, subAccounts }) => {
|
||||
addAccount: ({ category, type, name, icon, color, currency, comment, subAccounts }) => {
|
||||
return axios.post('v1/accounts/add.json', {
|
||||
category,
|
||||
type,
|
||||
name,
|
||||
icon,
|
||||
color,
|
||||
currency,
|
||||
comment,
|
||||
subAccounts
|
||||
});
|
||||
},
|
||||
modifyAccount: ({ id, category, name, icon, comment, hidden, subAccounts }) => {
|
||||
modifyAccount: ({ id, category, name, icon, color, comment, hidden, subAccounts }) => {
|
||||
return axios.post('v1/accounts/modify.json', {
|
||||
id,
|
||||
category,
|
||||
name,
|
||||
icon,
|
||||
color,
|
||||
comment,
|
||||
hidden,
|
||||
subAccounts
|
||||
|
||||
Reference in New Issue
Block a user