The drop-down list of FOR Loop click events in VUE.js how to make him withdraw the list when he clicks again?

1: now you can open the drop-down list, but you can"t get it back if you click again

2: < div class= "accordion" v show = "IfTail" v show = "(value,indexs) in dataconn" >

)
            <div class="accordion-item" style="border: 2px solid -sharp22d858">
                <div class="heading" v-on:click="openi = indexs"> 
                    <button class="icon"></button>
                    <div class="title">
                        :<span style="font-size: 17px">{{value.order.order}}</span>
                    </div>
                    <div class="title">
                        :<span style="font-size: 17px">{{value.order.track}}</span>
                    </div>
                    <div class="title">
                        :<span style="font-size: 17px">{{value.order.platform}}</span>
                    </div>
                    <div class="title">
                        :<span style="font-size: 17px">{{value.order.targer}}</span>
                    </div>
                    <div class="title">
                        :<span style="font-size: 17px">{{value.order.time}}</span>
                    </div>
                    <div class="title">
                        :<span style="font-size: 17px; margin-left: 5px;">{{value.order.logistics}}</span>
                    </div>
                </div>
                <transition>
                    <div>
                        <div class="contents">
                            <ul class="list-group"  v-for="v in value.track" v-show="indexs == openi">
                                <li class="list-group-item">{{v.trackTime}}
                                     {{v.trackContent}}
                                </li>
                            </ul>
                        </div>
                    </div>
                </transition>
            </div>
        </div>

5:
clipboard.png

Mar.09,2021

the point is to make a switch

<div class="heading" v-on:click="openi = openi==indexs'':indexs">

Thank you clipboard.png

for saying exactly what you mean.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ea2f-2c425.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ea2f-2c425.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?