init
This commit is contained in:
18
src/pages/home/index.vue
Normal file
18
src/pages/home/index.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<view class='flex flex-col items-center justify-center'>
|
||||
<swiper class='swiper'>
|
||||
<swiper-item v-for='(item, index) in bannerList' :key='index'>
|
||||
<image :src='item' mode='aspectFill' />
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup lang='ts'>
|
||||
import { useUserStore } from '@/store';
|
||||
|
||||
const store = useUserStore();
|
||||
|
||||
const bannerList = ref<string[]>(['1', '2', '3', '4']);
|
||||
console.log('store.user_name', store.user_name);
|
||||
</script>
|
Reference in New Issue
Block a user