guhongwei 1 year ago
parent
commit
5f1db5f654
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/views/home/index.vue

+ 2 - 0
src/views/home/index.vue

@@ -10,6 +10,7 @@
 
 <script setup lang="ts">
 // 基础
+import store from '@/stores/counter';
 import type { Ref } from 'vue';
 // reactive,
 import { onMounted, ref, getCurrentInstance } from 'vue';
@@ -27,6 +28,7 @@ const loading: Ref<any> = ref(false);
 onMounted(async () => {
   loading.value = true;
   //  await search({ skip, limit });
+  console.log(store.state.user);
   loading.value = false;
 });
 //const search = async (e: { skip: number; limit: number }) => {