瀏覽代碼

fix 修复 用户选择组件 id类型不统一问题

疯狂的狮子Li 7 月之前
父節點
當前提交
b61865f45f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/UserSelect/index.vue

+ 1 - 1
src/components/UserSelect/index.vue

@@ -166,7 +166,7 @@ const confirm = () => {
 
 const computedIds = (data) => {
   if (data instanceof Array) {
-    return [...data];
+    return data.map(item => String(item));
   } else if (typeof data === 'string') {
     return data.split(',');
   } else if (typeof data === 'number') {