Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cli初始化如果不配置后端则不显示redis配置 #213

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/toolkits/pro/src/lib/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,15 @@ const getProjectInfo = (): Promise<ProjectInfo> => {
message: '请输入Redis地址:',
default: 'localhost',
prefix: '*',
when: (answers) => answers.serverConfirm,
},
{
type: 'input',
name: 'redisPort',
message: '请输入Redis端口:',
default: 6379,
prefix: '*',
when: (answers) => answers.serverConfirm,
},
{
type: 'list',
Expand Down