mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-25 14:42:47 +00:00
fix: fix missing first char on display when create project, fix #258
This commit is contained in:
parent
d30e304495
commit
150fdcc478
@ -597,9 +597,15 @@ let createProject = () => {
|
||||
think.APP_PATH = getProjectAppPath();
|
||||
_createProject();
|
||||
|
||||
|
||||
let p = projectRootPath.slice(cwd.length);
|
||||
if(p[0] === think.sep){
|
||||
p = p.slice(1);
|
||||
}
|
||||
|
||||
console.log();
|
||||
console.log(' enter path:');
|
||||
console.log(' $ cd ' + projectRootPath.slice(cwd.length + 1));
|
||||
console.log(' $ cd ' + p);
|
||||
console.log();
|
||||
|
||||
console.log(' install dependencies:');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user