23.02.28 00:33 작성
·
1.3K
·
수정됨
1
Todo-Header.vue 파일에 코딩된 내용은 아래와 같습니다.
<template>
<header>
<!-- <h1>TODO it!</h1>-->
<h1>{{ this.$store.state.headerText }}</h1>
</header>
</template>
위 코드를 실행했을때 store 못 찾는 다고 나오는데 이유를 모르겠네요 ㅠ.ㅠ
[Vue warn]: Property or method "store" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
found in
---> <TodoHeader> at src/components/TodoHeader.vue
<App> at src/App.vue
<Root>