add account list page and account add page

This commit is contained in:
MaysWind
2020-11-09 01:10:41 +08:00
parent 70d4a84349
commit b2b8dcb098
15 changed files with 753 additions and 6 deletions
+14
View File
@@ -160,4 +160,18 @@ export default {
password
});
},
getAllAccounts: () => {
return axios.get('v1/accounts/list.json');
},
addAccount: ({ category, type, name, icon, currency, comment, subAccounts }) => {
return axios.post('v1/accounts/add.json', {
category,
type,
name,
icon,
currency,
comment,
subAccounts
});
},
};