mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-12 05:33:48 +08:00
v1.0.0
This commit is contained in:
4
front/src/plugins/error-store/index.js
Normal file
4
front/src/plugins/error-store/index.js
Normal file
@@ -0,0 +1,4 @@
|
||||
import store from '@/store';
|
||||
export default {
|
||||
install(Vue, options) {}
|
||||
};
|
||||
12
front/src/plugins/index.js
Normal file
12
front/src/plugins/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user