작성
·
363
0
undefined
TdComponent.vue?c5a7:15 {__ob__: Observer}
TdComponent.vue?c5a7:16 {__ob__: Observer}
TdComponent.vue?c5a7:17 undefined
vue.esm.js?efeb:628 [Vue warn]: Error in v-on handler: "TypeError: Cannot read property '1' of undefined"
found in
---> <TdComponent> at src/components/molecules/TdComponent.vue
<TrComponent> at src/components/molecules/TrComponent.vue
<TableComponent> at src/components/oranlsms/TableComponent.vue
<TicTacToe> at src/components/TicTacToe.vue
<App> at src/App.vue
<Root>
warn @ vue.esm.js?efeb:628
logError @ vue.esm.js?efeb:1893
globalHandleError @ vue.esm.js?efeb:1888
handleError @ vue.esm.js?efeb:1848
invokeWithErrorHandling @ vue.esm.js?efeb:1871
invoker @ vue.esm.js?efeb:2188
original._wrapper @ vue.esm.js?efeb:7565
vue.esm.js?efeb:1897 TypeError: Cannot read property '1' of undefined
at VueComponent.onClickTd (TdComponent.vue?c5a7:19)
at invokeWithErrorHandling (vue.esm.js?efeb:1863)
at HTMLTableCellElement.invoker (vue.esm.js?efeb:2188)
at HTMLTableCellElement.original._wrapper (vue.esm.js?efeb:7565)
logError @ vue.esm.js?efeb:1897
globalHandleError @ vue.esm.js?efeb:1888
handleError @ vue.esm.js?efeb:1848
invokeWithErrorHandling @ vue.esm.js?efeb:1871
invoker @ vue.esm.js?efeb:2188
original._wrapper @ vue.esm.js?efeb:7565
제로초님 안녕하세요.. ㅠㅠ
this.$root.$data.turn 작동하지를 않습니다..ㅠㅠ
ㅇ
답변 4
0
main.js 코드를 다음과 같이 바꿔보세요.
import Vue from 'vue';
import TicTacToe from './TicTacToe';
new Vue(TicTacToe).$mount('#root');
0
0
0