You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
347 B
24 lines
347 B
<template>
|
|
<h1>主页</h1>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import {defineComponent, onMounted} from "vue";
|
|
import {useStore} from "vuex";
|
|
|
|
export default defineComponent({
|
|
name: "Home",
|
|
setup() {
|
|
|
|
const store = useStore()
|
|
|
|
onMounted(() => {
|
|
store.commit('updateRoute', '/home')
|
|
})
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
</style> |