|
|
|
<template>
|
|
|
|
<div class="box2">
|
|
|
|
<h1>{{useInfo.count}}+++++++{{useInfo.total}}</h1>
|
|
|
|
<hr>
|
|
|
|
<p @click="updateTodo">{{todoStore.todos}}--{{todoStore.arr}}====={{todoStore.total}}</p>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
|
|
import useInfoStore from "@/store/modules/info";
|
|
|
|
let useInfo = useInfoStore();
|
|
|
|
|
|
|
|
import useTodoStore from "@/store/modules/todo";
|
|
|
|
let todoStore = useTodoStore();
|
|
|
|
const updateTodo =()=>{
|
|
|
|
todoStore.updateTodo();
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
.box2{
|
|
|
|
width: 300px;
|
|
|
|
height: 200px;
|
|
|
|
background: lightgoldenrodyellow;
|
|
|
|
}
|
|
|
|
</style>
|