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.
11 lines
407 B
11 lines
407 B
const apiUrl = process.env.VUE_APP_API_URL;
|
|
const tall = `${apiUrl}/defaultwbs/task`;
|
|
|
|
const install = (Vue, vm) => {
|
|
vm.$u.api = { ...vm.$u.api } || {};
|
|
vm.$u.api.getGlobal = param => vm.$u.post(`${tall}/global`, param);
|
|
vm.$u.api.getPermanent = param => vm.$u.post(`${tall}/permanent`, param);
|
|
vm.$u.api.getERegular = param => vm.$u.post(`${tall}/regular`, param);
|
|
};
|
|
|
|
export default { install };
|
|
|