src/page/user/Warehouse.vue
@@ -86,6 +86,15 @@ created() { this.getMoneys(); }, mounted(){ if(this.$route.query.index=='0'){ this.onClick({name:4}) }else if(this.$route.query.index=='1'){ this.onClick({name:2}) }else{ } }, methods: { itemClick() { this.$refs.dataListref.getList(this.activeObj.laber); @@ -107,6 +116,7 @@ } }, onClick(e) { console.log(e); this.active = e.name; this.activeObj = e; this.getMoneys(); @@ -159,4 +169,4 @@ // padding: 0.10667rem 0.34667rem; color: #fff; } </style> </style>