mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-02-01 15:23:03 +00:00
update think.alias
This commit is contained in:
parent
63c5ada503
commit
e0bb8e0434
@ -911,7 +911,7 @@ think.alias = (type, paths, slash) => {
|
||||
paths.forEach(path => {
|
||||
let files = think.getFiles(path);
|
||||
files.forEach(file => {
|
||||
if(file.slice(-3) !== '.js' || file[0] === '_'){
|
||||
if(file.slice(-3) !== '.js' || file[0] === '_' || file.indexOf(think.sep) > -1){
|
||||
return;
|
||||
}
|
||||
let name = file.slice(0, -3);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user