新增vuex,router

This commit is contained in:
唐明明
2022-01-04 09:58:48 +08:00
parent e2de02b68b
commit 6319631d7e
78 changed files with 12778 additions and 122 deletions

View File

@@ -1,6 +1,8 @@
<template>
<view>
<view class="user-demo">
<view @click="$Router.push({name: 'Address'})">地址管理</view>
<view @click="$Router.push({name: 'Order'})">订单管理</view>
<view @click="$Router.push({name: 'Auth'})">登录</view>
</view>
</template>
@@ -10,10 +12,27 @@
return {
};
},
mounted() {
console.log(this.$store.state)
}
}
</script>
<style lang="scss">
.user-demo{
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
height: 100vh;
view{
background: #2C405A;
color: white;
width: 50vw;
text-align: center;
line-height: 90rpx;
margin: $margin 0;
}
}
</style>