mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-04 11:16:39 +08:00
13 lines
259 B
JavaScript
13 lines
259 B
JavaScript
import config from '@/config';
|
|
const { plugin } = config;
|
|
|
|
export default Vue => {
|
|
for (let name in plugin) {
|
|
const value = plugin[name];
|
|
Vue.use(
|
|
require(`./${name}`).default,
|
|
typeof value === 'object' ? value : undefined
|
|
);
|
|
}
|
|
};
|