vue多页面demo
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
403 B

4 년 전
<template>
<div class="home">
<img src="@/assets/logo.png">
<HelloWorld msg="多页面测试页"/>
</div>
</template>
<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'
export default {
name: 'home',
components: {
HelloWorld
},
mounted() {
console.log(`这个是多页面测试页的主页:${this.$store.state.myname}`)
}
}
</script>