소스 검색

fix:代码提示功能label为非字符报错的问题 <CodeEditor>

Grnetsky 4 주 전
부모
커밋
ee01e3930c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/components/common/CodeEditor.vue

+ 1 - 1
src/views/components/common/CodeEditor.vue

@@ -176,7 +176,7 @@ watch(() => hints, (newValue) => {
         if (properties) {
           return {
             suggestions: properties.map(prop => ({
-              label: prop.label,
+              label: String(prop.label),
               kind: prop.kind,
               insertText: prop.insertText,
               detail: prop.detail,