|
@@ -7,34 +7,30 @@
|
|
|
</li>
|
|
|
</ul>
|
|
|
<button v-on:click="btn(usid)" :data-value="usid">点击</button>
|
|
|
- </div>
|
|
|
+ <navigation></navigation>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
<script type="text/javascript">
|
|
|
- import { mapState, mapActions } from 'vuex'
|
|
|
+ import { mapActions } from 'vuex'
|
|
|
export default({
|
|
|
data () {
|
|
|
return {
|
|
|
- usid: this.$store.state.user.userInfo.id
|
|
|
+ usid: this.$store.state.user.userInfo.id,
|
|
|
+ products: this.$store.state.product.products
|
|
|
}
|
|
|
},
|
|
|
- computed: mapState({
|
|
|
- products: state => state.product.products
|
|
|
- }),
|
|
|
- created () {
|
|
|
- this.PRODUCTLIST()
|
|
|
- },
|
|
|
+ created () {},
|
|
|
methods: {
|
|
|
- ...mapActions([
|
|
|
- 'PRODUCTLIST'
|
|
|
- ]),
|
|
|
+ ...mapActions([]),
|
|
|
btn: function (a) {
|
|
|
+ console.log(this.$store.state.product.products)
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
</script>
|
|
|
<style type="text/css" scoped>
|
|
|
button{
|
|
|
- font-size: 3rem;
|
|
|
+ font-size: 2rem;
|
|
|
border:1px solid darkseagreen;
|
|
|
}
|
|
|
</style>
|