Forráskód Böngészése

feat: 新增工具下载

lixuan 3 hete
szülő
commit
019a6cafe3

+ 6 - 2
apps/web-velofex/src/layouts/header/header.vue

@@ -22,7 +22,7 @@ const token = accessStore.accessToken;
 const isLogin = computed(() => !!userStore.userInfo);
 
 const menus = computed(() => [
-  { title: $t('homeMenu.toolDownloads'), path: '/Views/Tools/Index.html' },
+  { title: $t('homeMenu.toolDownloads'), path: '/tool-downloads' },
   {
     title: $t('homeMenu.aIGeneratedApps'),
     path: '/Views/Designer/AIGenerateApp.html',
@@ -72,7 +72,11 @@ function handleLogout() {
 }
 
 function handleClick(path: string) {
-  window.open(path, '_blank');
+  if (path === '/tool-downloads') {
+    router.push(path);
+  } else {
+    window.open(path, '_blank');
+  }
 }
 
 function handleHome() {

+ 5 - 0
apps/web-velofex/src/locales/langs/en-US/page.json

@@ -341,5 +341,10 @@
       "avatarUploadSuccess": "Avatar uploaded successfully",
       "avatarUploadFailed": "Avatar upload failed"
     }
+  },
+  "toolDownloads": {
+    "breadcrumb": "Dashboard / Tool Downloads",
+    "title": "Tool Downloads",
+    "download": "Download"
   }
 }

+ 5 - 0
apps/web-velofex/src/locales/langs/zh-CN/page.json

@@ -341,5 +341,10 @@
       "avatarUploadSuccess": "头像上传成功",
       "avatarUploadFailed": "头像上传失败"
     }
+  },
+  "toolDownloads": {
+    "breadcrumb": "首页 / 工具下载",
+    "title": "工具下载",
+    "download": "下载"
   }
 }

+ 9 - 0
apps/web-velofex/src/router/routes/external/router-a.ts

@@ -71,6 +71,15 @@ const routes: RouteRecordRaw[] = [
           title: '个人信息',
         },
       },
+      {
+        name: 'ToolDownloads',
+        path: 'tool-downloads',
+        component: () => import('#/views/dashboard/tool-downloads/index.vue'),
+        meta: {
+          icon: 'carbon:download',
+          title: '工具下载',
+        },
+      },
     ],
   },
 ];

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 263 - 0
apps/web-velofex/src/views/dashboard/tool-downloads/index.vue