From cf29ab5abf6c5f7b870c4854d37cdd6ec69fda67 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期五, 09 九月 2022 10:09:33 +0800
Subject: [PATCH] up
---
src/views/home/index.vue | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 143460a..9716c23 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -5,12 +5,14 @@
import {useRoute} from 'vue-router'
const router = useRoute()
const counter = useCounterStore()
-
+ const data={
+ name:'cheng',
+ age:18
+ }
// counter.count++
const count=computed(()=>{
return counter.count
})
- console.log(count, 'count')
const add=()=>{
counter.increment()
}
@@ -25,5 +27,6 @@
<Button @click="add" type="primary">
Tertiary{{count}}
</Button>
+ <div>{{data.name}}</div>
</template>
--
Gitblit v1.8.0