TIL.Vue. <22.08.30>

강형원·2022년 8월 30일
0

TroubleShooting

목록 보기
4/4

Trouble Shooting

Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders

-> props로 받은 값이 어딘가에서 바뀌고 있어서 나는 에러

숫자 타입과 스트링 타입을 혼동하면 data 또는 value값을 제대로 인식 못 함

-> ex) radio 버튼의 value는 string 타입이었는데 number로 넣음

array 타입으로 읽는 데이터는 push로 데이터를 넣어 읽음

-> ex) selectedCodeList(this.newsCode), arr.push(this.mainFileSeq)

profile
사람. 편하게.

0개의 댓글