<template>
    <div>
         <!-- <BSTList v-if="type==1"/>
         <HXYList v-else-if="type==2"/> -->
    </div>
</template>
<script>
// import BSTList from '@/views/leadMatch/roomList/BSTlist';
// import HXYList from '@/views/leadMatch/roomList/HXYlist';
export default {
    data(){
        return{
             type:null //1倍思特 2华信源
        }
    },
          beforeRouteEnter(to,form,next){
      console.log(to);
      if(to.query.version==0||to.query.version==1){
        next('/cms/leadMatch/roomList/BSTlist');
      }else if(to.query.version == 2){
  next('/cms/leadMatch/roomList/HXYlist')
      }else{
        next('/cms/leadMatch/roomList/BSTlist');
      }
    } 
    //  created(){
       
    //    this.axios.post('/api/get_cut_order_type').then(res=>{
    //            this.type = res.data;
    //    })
    // },
    //  beforeRouteLeave(to, from, next) {
    //   if (
    //     to.path == "/cms/leadMatch/roomList/HXYedit" || 
    //     to.path == "/cms/leadMatch/roomList/BSTedit"
    //   ) {
    //     from.meta.keepAlive = false;
    //     next();
    //   } else {
    //     localStorage.removeItem("list");
    //     localStorage.removeItem("pageSize");
    //     localStorage.removeItem("pageIndex");
    //     localStorage.removeItem("searchList");
    //     from.meta.keepAlive = false;
    //     next();
    //   }
    // },
    // components:{
    //     BSTList,
    //     HXYList
    // }
}
</script>
<style lang="scss" scoped>

</style>