右侧
This commit is contained in:
parent
25a4b5e70d
commit
e5189222ba
@ -8,7 +8,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="list">
|
<div class="list">
|
||||||
<div v-for="(i,j) in list" :key="j" style="overflow: hidden;" @click="routeto(j)">
|
<div v-for="(i,j) in list" :key="j" style="overflow: hidden;" @click="routeto(j)" @mouseenter="mouse(j)">
|
||||||
<div class="item" :class="{'selitem': j == selnum, 'seltop': j == selnum - 1, 'selbottom': j == selnum + 1}">
|
<div class="item" :class="{'selitem': j == selnum, 'seltop': j == selnum - 1, 'selbottom': j == selnum + 1}">
|
||||||
<div class="route">
|
<div class="route">
|
||||||
<img :src="i.icon" alt="" class="icon">
|
<img :src="i.icon" alt="" class="icon">
|
||||||
@ -190,6 +190,11 @@ export default defineComponent({
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function mouse(index: number): void {
|
||||||
|
console.log(index)
|
||||||
|
selnum.value = index;
|
||||||
|
}
|
||||||
|
|
||||||
function logout(): void{
|
function logout(): void{
|
||||||
store.commit("login", false)
|
store.commit("login", false)
|
||||||
router.replace("/");
|
router.replace("/");
|
||||||
@ -200,7 +205,8 @@ export default defineComponent({
|
|||||||
routeto,
|
routeto,
|
||||||
selnum,
|
selnum,
|
||||||
userinfo,
|
userinfo,
|
||||||
logout
|
logout,
|
||||||
|
mouse
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user