forked from ccsens_fe/tall-mui-3
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
262 B
9 lines
262 B
const apiUrl = process.env.VUE_APP_API_URL;
|
|
const tall = `${apiUrl}/tall/v1.0`;
|
|
|
|
const install = (Vue, vm) => {
|
|
vm.$u.api = { ...vm.$u.api } || {};
|
|
vm.$u.api.getToken = userId => vm.$u.get(`${tall}/users/userId`, { userId });
|
|
};
|
|
|
|
export default { install };
|
|
|