Forráskód Böngészése

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

Grnetsky 4 hete
szülő
commit
ee01e3930c
1 módosított fájl, 1 hozzáadás és 1 törlés
  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) {
         if (properties) {
           return {
           return {
             suggestions: properties.map(prop => ({
             suggestions: properties.map(prop => ({
-              label: prop.label,
+              label: String(prop.label),
               kind: prop.kind,
               kind: prop.kind,
               insertText: prop.insertText,
               insertText: prop.insertText,
               detail: prop.detail,
               detail: prop.detail,