<template v-if="!isLogin">
<template id="onCh">
<div v-for="(item, index) in rightMenu" :key="index" @click="addClass(index)" v-bind:class="{ischeck: index == current}">
<router-link class="oneli icobtn" :to="{path:item.path}" exact v-if="item.ico" >
<img :src="item.ico" alt="" />
<span>111{{item.title}}</span>
</router-link>
<router-link class="oneli rigisterbtn" :to="{path:item.path}" exact v-else>
<span>222{{item.title}}</span>
</router-link>
</div>
</template>
</template>
addClass(index) {
// var cun = sessionStorage.name = index;
// console.log("cun",cun);
// var na = sessionStorage.getItem("name",index);
// console.log("na",na);
this.current = na;
},