Skip to content

Commit

Permalink
修复文档描述错误
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-cn committed Jul 8, 2023
1 parent 8c59a12 commit 9da9276
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ export * from './command'
export * from './component'
export * from './element'
export * from './request'
export * from '@zhinjs/schema'
export * from '@zhinjs/shared'
2 changes: 1 addition & 1 deletion src/zhin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class Zhin extends Context {
.use(router.allowedMethods())
server.listen(options.port ||= 8086)
this.logger.info(`server listen at \n${getIpAddress().map(ip => `http://${ip}:${options.port}`).join('\n')}`)
this.options = ref(options)
this.options = ref(options) as any
watch(this.options, async (value: Zhin.Options) => {
await fs.writeFileSync(process.env.configPath, Yaml.dump(value))
})
Expand Down

0 comments on commit 9da9276

Please sign in to comment.