瀏覽代碼

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,