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.
12 lines
412 B
12 lines
412 B
import domain from '@/config/domains';
|
|
const apiUrl = process.env.VUE_APP_API_URL;
|
|
const mock = `${apiUrl}${domain}`;
|
|
const plugin = `${apiUrl}/pluginshop/plugin`;
|
|
|
|
const install = (Vue, vm) => {
|
|
vm.$u.api = { ...vm.$u.api } || {};
|
|
vm.$u.api.getPlugin = param => vm.$u.post(`${mock}/plugin`, param);
|
|
vm.$u.api.getOtherPlugin = param => vm.$u.post(`${plugin}/query`, param);
|
|
};
|
|
|
|
export default { install };
|
|
|