mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 00:12:11 +08:00
code refactor
This commit is contained in:
@@ -478,7 +478,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
const id = event.el.id.substr(8); // account_
|
||||
const id = event.el.id.substring(8); // account_
|
||||
|
||||
self.$store.dispatch('changeAccountDisplayOrder', {
|
||||
accountId: id,
|
||||
|
||||
@@ -250,7 +250,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
const id = event.el.id.substr(9); // category_
|
||||
const id = event.el.id.substring(9); // category_
|
||||
|
||||
self.$store.dispatch('changeCategoryDisplayOrder', {
|
||||
categoryId: id,
|
||||
|
||||
@@ -259,7 +259,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
const id = event.el.id.substr(4); // tag_
|
||||
const id = event.el.id.substring(4); // tag_
|
||||
|
||||
self.$store.dispatch('changeTagDisplayOrder', {
|
||||
tagId: id,
|
||||
|
||||
Reference in New Issue
Block a user