써먹는 웹개발

[Vue] csedit 개발서버에서 굵기(strokewidth) 변경시 에러나는 이유 본문

Study/Vue.js

[Vue] csedit 개발서버에서 굵기(strokewidth) 변경시 에러나는 이유

kmhan 2024. 4. 24. 00:41


728x90
반응형

watch 안에서 strokeWidth를 할당할때 형변환을 안해서 생긴 문제

변경 전

this.strokeWidth = newVal;

 

변경 후

this.strokeWidth = Number(newVal);

728x90
반응형


Comments