Skip to content

Commit

Permalink
fix(app-console): fix tsd parse missing while init editor
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Jan 11, 2022
1 parent 543e51a commit b2818a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/app-console/src/components/FunctionEditor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,11 @@ export default {
const value = this.editor?.getValue()
this.$emit('input', value)
this.$emit('change', value)
this.parseImports(this.getValue())
this.parseImports(this.getValue() || '')
})
// setTimeout(() => this.parseImports(this.getValue()), 0)
this.parseImports(this.getValue())
},
getValue() {
Expand Down
3 changes: 2 additions & 1 deletion packages/app-console/src/views/cloudfunction/debug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,14 @@

<el-drawer
title="调试面板"
:visible.sync="showDebugPanel"
:visible="showDebugPanel"
direction="rtl"
size="40%"
:destroy-on-close="false"
:show-close="true"
:modal="true"
:wrapper-closable="true"
@close="showDebugPanel = false"
>

<div class="invoke-panel">
Expand Down

0 comments on commit b2818a0

Please sign in to comment.