添加跳转日历
This commit is contained in:
@@ -91,7 +91,7 @@
|
||||
</a-menu>
|
||||
</template>
|
||||
</a-dropdown>
|
||||
<div class="item" style="border-right: none;">
|
||||
<div class="item" style="border-right: none;" @click="navto('/regime/date')">
|
||||
<img src="@/static/images/rili.png" alt="" class="icon">
|
||||
<div class="name">日历</div>
|
||||
</div>
|
||||
@@ -219,10 +219,15 @@ export default defineComponent({
|
||||
return store.state.userinfo;
|
||||
})
|
||||
|
||||
function navto(index: number){
|
||||
router.push({
|
||||
path: nav[index].route
|
||||
})
|
||||
function navto(index: number | string){
|
||||
if(typeof index == "number"){
|
||||
router.push({
|
||||
path: nav[index].route
|
||||
})
|
||||
}else{
|
||||
router.push(index)
|
||||
}
|
||||
|
||||
}
|
||||
return {
|
||||
nav,
|
||||
|
||||
Reference in New Issue
Block a user