You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bsdgy-front/src/pages/shop/IncreaseManager.vue

43 lines
1.0 KiB
Vue

6 years ago
<template>
<div>
<Menu mode="horizontal" :active-name="selectedItemName" v-model="this.threeLevel[0].id">
<MenuItem :name="cItem.id" :to="cItem.resource" v-for="cItem in threeLevel"
:key="cItem.id">
{{cItem.name}}
6 years ago
</MenuItem>
</Menu>
<div>
<router-view/>
</div>
</div>
</template>
<script>
export default {
name: "ShopIncrease",
data() {
return {
threeLevel: null,
selectedItemName: [],
}
},
mounted() {
this.threeLevel = JSON.parse(sessionStorage.getItem("threeLevel"));
this.menuInit();
},
methods:{
menuInit(){
let that = this;
that.selectedItemName = [that.threeLevel[0].id];
this.$nextTick(() => {
this.$refs.menu.updateActiveName();
});
}
}
6 years ago
}
</script>
<style scoped>
</style>