coffee/src/App.vue

60 lines
1.1 KiB
Vue
Raw Normal View History

2024-12-03 15:23:59 +08:00
<template>
2024-12-03 17:17:29 +08:00
<!-- <img alt="Vue logo" src="./assets/logo.png"> -->
<!-- <HelloWorld msg="Welcome to Your Vue.js App"/> -->
2024-12-05 17:30:42 +08:00
<!-- <router-view></router-view> -->
<FirstPage />
2024-12-03 17:17:29 +08:00
<!-- <MenuList /> -->
2024-12-03 15:23:59 +08:00
</template>
<script>
2024-12-05 17:30:42 +08:00
import { useRouter } from 'vue-router';
2024-12-03 17:17:29 +08:00
// import HelloWorld from './components/HelloWorld.vue'
2024-12-04 17:27:55 +08:00
// import coffeeIndex from './components/coffeeIndex.vue';
2024-12-03 17:17:29 +08:00
// import MenuList from './components/MenuList.vue';
2024-12-05 17:30:42 +08:00
import FirstPage from './components/FirstPage.vue';
2024-12-03 15:23:59 +08:00
export default {
name: 'App',
components: {
2024-12-03 17:17:29 +08:00
// HelloWorld,
2024-12-04 17:27:55 +08:00
// coffeeIndex
2024-12-03 17:17:29 +08:00
// MenuList
2024-12-05 17:30:42 +08:00
FirstPage
},
setup() {
const goTo = () => {
console.log('go to first page');
useRouter().push('/first');
}
return {
goTo
}
2024-12-03 15:23:59 +08:00
}
}
</script>
<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
2024-12-03 17:17:29 +08:00
width: 100%;
height: 100%;
}
2024-12-04 17:27:55 +08:00
html{
height: 100%;
width: 100%;
}
2024-12-03 17:17:29 +08:00
body {
margin: 0;
padding: 0;
background-color: #f5f5f5;
height: 100%;
width: 100%;
2024-12-05 17:30:42 +08:00
overflow: hidden;
2024-12-03 15:23:59 +08:00
}
</style>