import { computed } from 'vue';
import { tabStore } from '@/store/tabs';

// XXX 废弃函数
/**
 * 是否需要缓存的路由
 * @param routerName 路由名称
 * @returns 
 */
export function isKeepAlive(routerName, tabsList: string[]) {
    // const store = tabStore();
    //获取tabs数据
    // const tabsList = computed(() => {
    //     return store.getTabs
    // })
    // const excludeRouter = tabsList.value.map(item => item.name)
    // console.log(excludeRouter, "后端返回的路由名称 ==》 与权限管理中路由名称对应");
    // 后端返回的路由名称 ==》 与权限管理中路由名称对应
    console.log(tabsList,":tabsList");
    const excludeRouter = [
        "customerfeetest", 
        "customerfeeset", 
        "providerFeeSet", 
        "productRateRatio", 
        "queryproviderfee",
        "customerBill",
        "userMoneyDetail"
    ]
    return excludeRouter.includes(routerName)
    // return tabsList.includes(routerName)
}