Chatwoot/app/javascript/dashboard/mixins/account.js

15 lines
252 B
JavaScript
Raw Normal View History

import { mapGetters } from 'vuex';
2020-04-23 06:51:45 +00:00
export default {
computed: {
...mapGetters({
accountId: 'getCurrentAccountId',
}),
2020-04-23 06:51:45 +00:00
},
methods: {
addAccountScoping(url) {
return `/app/accounts/${this.accountId}/${url}`;
},
},
};