소스 검색

chore: add missing space in warning message (#2266) [ci skip]

Lory Lee 5 년 전
부모
커밋
6b8cf998c4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/reactivity/src/collectionHandlers.ts

+ 1 - 1
packages/reactivity/src/collectionHandlers.ts

@@ -350,7 +350,7 @@ function checkIdentityKeys(
     const type = toRawType(target)
     const type = toRawType(target)
     console.warn(
     console.warn(
       `Reactive ${type} contains both the raw and reactive ` +
       `Reactive ${type} contains both the raw and reactive ` +
-        `versions of the same object${type === `Map` ? `as keys` : ``}, ` +
+        `versions of the same object${type === `Map` ? ` as keys` : ``}, ` +
         `which can lead to inconsistencies. ` +
         `which can lead to inconsistencies. ` +
         `Avoid differentiating between the raw and reactive versions ` +
         `Avoid differentiating between the raw and reactive versions ` +
         `of an object and only use the reactive version if possible.`
         `of an object and only use the reactive version if possible.`