|
|
@ -7,7 +7,7 @@ import {useAdminStore} from "@/store/index.js"; |
|
|
|
const router = useRouter();// 获取路由实例 |
|
|
|
const route = useRoute();// 获取当前路由信息 |
|
|
|
// 定义响应式变量 activeTab 来跟踪当前激活的标签 |
|
|
|
const activeTab = ref(route.name === 'beanSystemRecharge' ? 'system' : 'add'); |
|
|
|
const activeTab = ref(route.name === 'beanSystemRecharge' ? 'system' : route.name === 'beanOnlineRecharge' ? 'online' : 'add'); |
|
|
|
const adminStore = useAdminStore(); |
|
|
|
const {menuTree} = storeToRefs(adminStore); |
|
|
|
const goToAdd = () => { |
|
|
|