You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
560 B
24 lines
560 B
<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> |