完善购买和套餐功能

This commit is contained in:
2026-09-16 17:26:02 +08:00
parent 898dedd75a
commit b48688cbab
19 changed files with 554 additions and 58 deletions
+3
View File
@@ -145,6 +145,7 @@ import {
getPaymentChannels,
} from "@/api/product";
import { useAuthStore } from "@/stores/auth";
import { reloadMenusAndDynamicRoutes } from "@/router";
interface FeatureNode {
key: number;
@@ -311,6 +312,8 @@ const checkOrder = async (silent = false) => {
ElMessage.success("购买成功,功能已开通");
payVisible.value = false;
loadMyOrders();
// 重建动态路由,把刚开通模块的「功能未开通」菜单占位页切换为真实页面
reloadMenusAndDynamicRoutes().catch(() => {});
return;
}
if (status === "paid") {