瀏覽代碼

fix(products): 修正媒体资源路由路径并添加联赛相关赛事加载

- 将物理媒体资源路由路径从 /physical/mediaResource 更新为 /adv/mediaResource
- 在赛事提交成功后添加联赛相关赛事数据重新加载功能
- 确保数据一致性通过调用 loadLeagueRelatedTournaments 方法实现
fugui 2 周之前
父節點
當前提交
8058a20017
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      src/views/system/business/products/index.vue
  2. 1 0
      src/views/system/physical/tournaments/index.vue

+ 1 - 1
src/views/system/business/products/index.vue

@@ -314,7 +314,7 @@ const loadItemOptions = async () => {
 
 const handleUploadFile = (fileType: string) => {
   proxy?.$router.push({
-    path: '/physical/mediaResource',
+    path: '/adv/mediaResource',
     query: {
       bizType: 'charge_points', // 转为字符串以兼容 URL 参数
       fileType: fileType

+ 1 - 0
src/views/system/physical/tournaments/index.vue

@@ -948,6 +948,7 @@ const submitForm = () => {
       proxy?.$modal.msgSuccess('操作成功');
       dialog.visible = false;
       await getList();
+      await loadLeagueRelatedTournaments();
     } catch (error) {
       console.error('提交失败:', error);
       proxy?.$modal.msgError('提交失败,请重试');