提交 80fe6cda 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

fix(store): reactive warning

上级 1f237675
......@@ -7,9 +7,14 @@
<script>
import ComponentLifecycle from '@/components/Lifecycle.uvue'
import { state } from '@/store/index.uts'
import { State, state } from '@/store/index.uts'
export default {
components: { ComponentLifecycle },
data(){
return {
_state: state as State
}
},
methods: {
// 自动化测试
getLifeCycleNum(): number {
......
......@@ -5,8 +5,13 @@
</template>
<script>
import { state, setLifeCycleNum } from '@/store/index.uts'
import { State, state, setLifeCycleNum } from '@/store/index.uts'
export default {
data(){
return {
_state: state as State
}
},
onLoad() {
// 自动化测试
setLifeCycleNum(state.lifeCycleNum + 100)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册