Merge branch 'main' of ssh://18.167.251.121:10002/aidlab/Aida_Purchaser_Front
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
export default {
|
||||
install(app) {
|
||||
const directivesList = import.meta.glob('./*.js', { eager: true });
|
||||
const directivesList1 = import.meta.glob('./*.js', { eager: true });
|
||||
const directivesList2 = import.meta.glob('./*.ts', { eager: true });
|
||||
const directivesList = { ...directivesList1, ...directivesList2 };
|
||||
|
||||
// 遍历指令文件实现自动注册
|
||||
Object.keys(directivesList).forEach(key => {
|
||||
app.directive(directivesList[key].default.name, directivesList[key].default);
|
||||
|
||||
Reference in New Issue
Block a user