|
|
@@ -1,16 +1,28 @@
|
|
|
<template>
|
|
|
<div class="container">
|
|
|
<van-image class="image" :src="imageUrl" ></van-image>
|
|
|
- <div>欢迎进入</div>
|
|
|
+ <div class="home" @click="onRouter">欢迎进入</div>
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
<script setup>
|
|
|
import imageUrl from '@/assets/img.png'
|
|
|
+import { useRouter } from 'vue-router'
|
|
|
+const router = useRouter()
|
|
|
+const onRouter=()=>{
|
|
|
+ router.push('/picking')
|
|
|
+}
|
|
|
</script>
|
|
|
<style scoped lang="sass" >
|
|
|
.container
|
|
|
height: 100vh
|
|
|
.image
|
|
|
margin: 20px
|
|
|
+ .home
|
|
|
+ cursor: pointer
|
|
|
+ padding: 10px
|
|
|
+ font-size: 18px
|
|
|
+ text-decoration: underline
|
|
|
+ color: #0077ff
|
|
|
+
|
|
|
</style>
|