Преглед изворни кода

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,