Просмотр исходного кода

feat(应用库): 应用名统一压缩至 ≤3 汉字;默认快捷 6 项把任务替换为饮食

E2E Test Bot 3 недель назад
Родитель
Сommit
d8f0a9c1ea
2 измененных файлов с 7 добавлено и 7 удалено
  1. 1 1
      cfc-frontend/pages/index-home/index.vue
  2. 6 6
      cfc-frontend/utils/app-library.js

+ 1 - 1
cfc-frontend/pages/index-home/index.vue

@@ -906,7 +906,7 @@ title: '添加家庭成员',
     },
     // 默认 6 个快捷入口(未配置自定义快捷方式时使用)
     getDefaultQuickApps: function() {
-      var defaultKeys = ['task', 'tiandi', 'members', 'circle', 'cart', 'shop']
+      var defaultKeys = ['diet', 'tiandi', 'members', 'circle', 'cart', 'shop']
       var shown = []
       defaultKeys.forEach(function(key) {
         var app = findAppByKey(key)

+ 6 - 6
cfc-frontend/utils/app-library.js

@@ -11,7 +11,7 @@
  * 应用库 = 所有“可直接进入的功能页面”,除已在首页有显著入口者外,其余均可在配置页中选择放入快捷区。
  *
  * 固定的 6 个快捷入口(默认值,新用户/无配置时):
- *   task, tiandi, members, circle, cart, shop
+ *   diet, tiandi, members, circle, cart, shop
  *
  * 已在首页显著位置的功能(canShortcut=false,配置页可见但置灰标注"已在首页"):
  *   report, article
@@ -24,7 +24,7 @@ export const APP_LIBRARY = [
   // --- 已在首页有显著入口(不进快捷配置列表,但进应用库,置灰标注) ---
   {
     key: 'report',
-    name: '健康报告',
+    name: '报告',
     icon: '🩺',
     route: '/pages/health/report-upload',
     canShortcut: false,
@@ -32,7 +32,7 @@ export const APP_LIBRARY = [
   },
   {
     key: 'article',
-    name: '文章中心',
+    name: '文章',
     icon: '📖',
     route: '/pages/article-center/index',
     canShortcut: false,
@@ -100,7 +100,7 @@ export const APP_LIBRARY = [
   // --- 可配置的功能 ---
   {
     key: 'diet',
-    name: '饮食推荐',
+    name: '饮食',
     icon: '🥗',
     route: '/pages/diet/index',
     canShortcut: true,
@@ -116,7 +116,7 @@ export const APP_LIBRARY = [
   },
   {
     key: 'growth',
-    name: '成长记录',
+    name: '成长',
     icon: '📈',
     route: '/pages/growth-main/index',
     canShortcut: true,
@@ -164,7 +164,7 @@ export const APP_LIBRARY = [
   },
   {
     key: 'membership',
-    name: '会员中心',
+    name: '会员',
     icon: '👑',
     route: '/pages/membership/index',
     canShortcut: true,