浏览代码

feat: 文案提取

victor.zhou 4 月之前
父节点
当前提交
269181a2df
共有 5 个文件被更改,包括 206 次插入99 次删除
  1. 29 64
      src/components/GlobalNavigation.vue
  2. 1 1
      src/components/LoginButton.vue
  3. 72 1
      src/i18n/locales/en.json
  4. 72 1
      src/i18n/locales/zh.json
  5. 32 32
      src/views/Home.vue

+ 29 - 64
src/components/GlobalNavigation.vue

@@ -31,7 +31,7 @@
                         :class="$route.path === '/' ? 'bg-yellow-400 text-gray-800' : 'bg-gray-100 text-gray-700 hover:bg-gray-200'"
                     >
                         <span>🏠</span>
-                        <span>主页</span>
+                        <span>{{ t('navigation.home') }}</span>
                     </router-link>
                     <router-link
                         to="/today-eat"
@@ -39,7 +39,7 @@
                         :class="$route.path === '/today-eat' ? 'bg-yellow-400 text-gray-800' : 'bg-gray-100 text-gray-700 hover:bg-gray-200'"
                     >
                         <span>🎲</span>
-                        <span>美食盲盒</span>
+                        <span>{{ t('navigation.todayEat') }}</span>
                     </router-link>
                     <router-link
                         to="/table-design"
@@ -47,7 +47,7 @@
                         :class="$route.path === '/table-design' ? 'bg-yellow-400 text-gray-800' : 'bg-gray-100 text-gray-700 hover:bg-gray-200'"
                     >
                         <span>🍽️</span>
-                        <span>满汉全席</span>
+                        <span>{{ t('navigation.tableDesign') }}</span>
                     </router-link>
                     <router-link
                         to="/fortune-cooking"
@@ -55,7 +55,7 @@
                         :class="$route.path === '/fortune-cooking' ? 'bg-yellow-400 text-gray-800' : 'bg-gray-100 text-gray-700 hover:bg-gray-200'"
                     >
                         <span>🔮</span>
-                        <span>玄学厨房</span>
+                        <span>{{ t('navigation.fortuneCooking') }}</span>
                     </router-link>
                     <router-link
                         to="/sauce-design"
@@ -63,7 +63,7 @@
                         :class="$route.path === '/sauce-design' ? 'bg-yellow-400 text-gray-800' : 'bg-gray-100 text-gray-700 hover:bg-gray-200'"
                     >
                         <span>🥄</span>
-                        <span>酱料大师</span>
+                        <span>{{ t('navigation.sauceDesign') }}</span>
                     </router-link>
 
                     <!-- 更多菜单下拉 -->
@@ -77,7 +77,7 @@
                             ]"
                         >
                             <span>⋯</span>
-                            <span>更多</span>
+                            <span>{{ t('navigation.more') }}</span>
                         </button>
 
                         <!-- 下拉菜单 -->
@@ -93,7 +93,7 @@
                                 :class="$route.path === '/favorites' ? 'bg-yellow-100 text-gray-800' : 'text-gray-700'"
                             >
                                 <span>❤️</span>
-                                <span>我的收藏</span>
+                                <span>{{ t('navigation.favorites') }}</span>
                             </router-link>
                             <router-link
                                 to="/gallery"
@@ -102,7 +102,7 @@
                                 :class="$route.path === '/gallery' ? 'bg-yellow-100 text-gray-800' : 'text-gray-700'"
                             >
                                 <span>🖼️</span>
-                                <span>封神图鉴</span>
+                                <span>{{ t('navigation.gallery') }}</span>
                             </router-link>
                             <router-link
                                 to="/about"
@@ -111,7 +111,7 @@
                                 :class="$route.path === '/about' ? 'bg-yellow-100 text-gray-800' : 'text-gray-700'"
                             >
                                 <span>📖</span>
-                                <span>关于我们</span>
+                                <span>{{ t('navigation.about') }}</span>
                             </router-link>
                         </div>
                     </div>
@@ -141,11 +141,11 @@
                         <LoginButton />
                         <!-- 移动端设置按钮 -->
                         <!-- <SettingsButton /> -->
-                        <button @click="showMobileMenu = !showMobileMenu" class="p-2 bg-gray-100 hover:bg-gray-200 rounded-lg border-2 border-[#0A0910] transition-colors">
+                        <!-- <button @click="showMobileMenu = !showMobileMenu" class="p-2 bg-gray-100 hover:bg-gray-200 rounded-lg border-2 border-[#0A0910] transition-colors">
                             <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
                             </svg>
-                        </button>
+                        </button> -->
                     </div>
                 </div>
 
@@ -161,7 +161,7 @@
                                 :class="$route.path === '/' ? 'bg-yellow-400 text-gray-800 shadow-md' : 'bg-white text-gray-700 hover:bg-gray-50 active:scale-95'"
                             >
                                 <span>🏠</span>
-                                <span>主页</span>
+                                <span>{{ t('navigation.home') }}</span>
                             </router-link>
                             <router-link
                                 to="/today-eat"
@@ -170,7 +170,7 @@
                                 :class="$route.path === '/today-eat' ? 'bg-yellow-400 text-gray-800 shadow-md' : 'bg-white text-gray-700 hover:bg-gray-50 active:scale-95'"
                             >
                                 <span>🎲</span>
-                                <span>美食盲盒</span>
+                                <span>{{ t('navigation.todayEat') }}</span>
                             </router-link>
                             <router-link
                                 to="/table-design"
@@ -179,7 +179,7 @@
                                 :class="$route.path === '/table-design' ? 'bg-yellow-400 text-gray-800 shadow-md' : 'bg-white text-gray-700 hover:bg-gray-50 active:scale-95'"
                             >
                                 <span>🍽️</span>
-                                <span>满汉全席</span>
+                                <span>{{ t('navigation.tableDesign') }}</span>
                             </router-link>
                             <router-link
                                 to="/sauce-design"
@@ -188,7 +188,7 @@
                                 :class="$route.path === '/sauce-design' ? 'bg-yellow-400 text-gray-800 shadow-md' : 'bg-white text-gray-700 hover:bg-gray-50 active:scale-95'"
                             >
                                 <span>🥄</span>
-                                <span>酱料大师</span>
+                                <span>{{ t('navigation.sauceDesign') }}</span>
                             </router-link>
                             <router-link
                                 to="/fortune-cooking"
@@ -197,7 +197,7 @@
                                 :class="$route.path === '/fortune-cooking' ? 'bg-yellow-400 text-gray-800 shadow-md' : 'bg-white text-gray-700 hover:bg-gray-50 active:scale-95'"
                             >
                                 <span>🔮</span>
-                                <span>玄学厨房</span>
+                                <span>{{ t('navigation.fortuneCooking') }}</span>
                             </router-link>
                             <router-link
                                 to="/favorites"
@@ -206,7 +206,7 @@
                                 :class="$route.path === '/favorites' ? 'bg-yellow-400 text-gray-800 shadow-md' : 'bg-white text-gray-700 hover:bg-gray-50 active:scale-95'"
                             >
                                 <span>❤️</span>
-                                <span>我的收藏</span>
+                                <span>{{ t('navigation.favorites') }}</span>
                             </router-link>
                             <router-link
                                 to="/gallery"
@@ -215,7 +215,7 @@
                                 :class="$route.path === '/gallery' ? 'bg-yellow-400 text-gray-800 shadow-md' : 'bg-white text-gray-700 hover:bg-gray-50 active:scale-95'"
                             >
                                 <span>🖼️</span>
-                                <span>封神图鉴</span>
+                                <span>{{ t('navigation.gallery') }}</span>
                             </router-link>
                             <router-link
                                 to="/about"
@@ -224,13 +224,13 @@
                                 :class="$route.path === '/about' ? 'bg-yellow-400 text-gray-800 shadow-md' : 'bg-white text-gray-700 hover:bg-gray-50 active:scale-95'"
                             >
                                 <span>📖</span>
-                                <span>关于我们</span>
+                                <span>{{ t('navigation.about') }}</span>
                             </router-link>
                         </div>
                     </div>
 
                     <!-- 滚动提示 -->
-                    <div class="text-center text-xs text-gray-500 mt-1">← 左右滑动查看更多功能 →</div>
+                    <div class="text-center text-xs text-gray-500 mt-1">{{ t('navigation.scrollHint') }}</div>
                 </div>
             </div>
         </div>
@@ -240,9 +240,12 @@
 <script setup lang="ts">
 import { ref, computed } from 'vue'
 import { useRoute } from 'vue-router'
+import { useI18n } from 'vue-i18n'
 // import SettingsButton from './SettingsButton.vue'
 import LoginButton from './LoginButton.vue'
 
+const { t } = useI18n()
+
 const showMobileMenu = ref(false)
 const showMoreMenu = ref(false)
 const isLogoRotating = ref(false)
@@ -258,53 +261,15 @@ const route = useRoute()
 
 // 根据当前路由显示不同的页面标题
 const pageTitle = computed(() => {
-    switch (route.path) {
-        case '/':
-            return '一饭封神'
-        case '/today-eat':
-            return '今日吃啥'
-        case '/table-design':
-            return '一桌好菜师'
-        case '/how-to-cook':
-            return '菜谱指南'
-        case '/sauce-design':
-            return '酱料设计大师'
-        case '/fortune-cooking':
-            return '玄学厨房'
-        case '/favorites':
-            return '我的收藏'
-        case '/gallery':
-            return '封神图鉴'
-        case '/about':
-            return '关于一饭封神'
-        default:
-            return '一饭封神'
-    }
+    const pathKey = route.path.replace('/', '') || 'home'
+    const key = pathKey.replace(/-([a-z])/g, (g) => g[1].toUpperCase())
+    return t(`navigation.pageTitle.${key}`, t('navigation.pageTitle.home'))
 })
 
 const pageSubtitle = computed(() => {
-    switch (route.path) {
-        case '/':
-            return '灶间有AI,顿顿米其林!'
-        case '/today-eat':
-            return "盲盒美食:'绝了!' or '寄了!'"
-        case '/table-design':
-            return '让每顿饭,都有剧本!'
-        case '/how-to-cook':
-            return 'AI大师手把手教学!'
-        case '/sauce-design':
-            return '专业酱料制作,调味灵魂升华!'
-        case '/fortune-cooking':
-            return '星辰指引美食,占卜预见美味!'
-        case '/favorites':
-            return '珍藏美味,随时回味!'
-        case '/gallery':
-            return '每一帧都是厨艺的封神时刻!'
-        case '/about':
-            return '算法烹万物,一键即封神!'
-        default:
-            return 'LEGENDARY STATUS FROM A SINGLE MEAL!'
-    }
+    const pathKey = route.path.replace('/', '') || 'home'
+    const key = pathKey.replace(/-([a-z])/g, (g) => g[1].toUpperCase())
+    return t(`navigation.pageSubtitle.${key}`, t('navigation.pageSubtitle.default'))
 })
 
 // 检查更多菜单中的页面是否处于活跃状态

+ 1 - 1
src/components/LoginButton.vue

@@ -1,6 +1,6 @@
 <template>
     <div>
-      <button @click="login" class="p-2 text-gray-600 hover:text-gray-800 hover:bg-gray-100 rounded-lg transition-colors" title="系统设置">
+      <button @click="login" class="p-1 bg-gray-100 hover:bg-gray-200 rounded-lg border-2 border-[#0A0910] transition-colors" title="Login">
         <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
               <path
                   stroke-linecap="round"

+ 72 - 1
src/i18n/locales/en.json

@@ -1,4 +1,41 @@
 {
+  "navigation": {
+    "appName": "Legendary with just one meal",
+    "appSlogan": "With an AI chef in the kitchen, every meal is made with love and Michelin-level quality!",
+    "home": "Home",
+    "todayEat": "Culinary Mystery Box",
+    "tableDesign": "Feast Mode",
+    "fortuneCooking": "Kitchen Magic",
+    "sauceDesign": "The Sauce Master",
+    "more": "Explore More",
+    "favorites": "My Favorites",
+    "gallery": "The Pantheon Guide",
+    "about": "About Us",
+    "scrollHint": "← Swipe left or right to explore more →",
+    "pageTitle": {
+      "home": "Legendary with just one meal",
+      "todayEat": "What to Eat Today?",
+      "tableDesign": "A-table-of-masterpieces Director",
+      "howToCook": "Recipe Guide",
+      "sauceDesign": "Sauce Alchemist",
+      "fortuneCooking": "Kitchen Magic",
+      "favorites": "My Favorites",
+      "gallery": "The Pantheon Guide",
+      "about": "About One Meal, Legendary Status"
+    },
+    "pageSubtitle": {
+      "home": "With an AI chef in the kitchen, every meal is made with love and Michelin-level quality!",
+      "todayEat": "Surprise Dish: 'Nailed it!' or 'Failed it!'",
+      "tableDesign": "Every meal, scripted to perfection!",
+      "howToCook": "AI Master's hands-on teaching!",
+      "sauceDesign": "Professional crafting that elevates the soul of flavor.",
+      "fortuneCooking": "Stars align to reveal culinary fates; divination whispers of flavors yet to come.",
+      "favorites": "Treasured flavors, to be savored again and again.",
+      "gallery": "Every frame, a legendary moment.",
+      "about": "Algorithm cooks all, one click to legend.",
+      "default": "LEGENDARY STATUS FROM A SINGLE MEAL!"
+    }
+  },
   "home": {
     "pageTitle": "Home",
     "step1": {
@@ -41,6 +78,14 @@
           "breakfast": "Nutritious Breakfast",
           "lunch": "Work Lunch"
         },
+        "scenePrompts": {
+          "family": "Home-style dishes suitable for the whole family, appropriate for all ages, nutritionally balanced",
+          "romantic": "Exquisite dishes perfect for couples' dates, beautifully presented, romantic atmosphere",
+          "quick": "Quick and easy dishes, ready in 15 minutes, perfect for busy times",
+          "party": "Appetizers or snacks perfect for gatherings with friends, easy to share",
+          "breakfast": "Healthy and nutritious breakfast combinations, providing energy for the day",
+          "lunch": "Suitable for office workers' lunch, nutritious and not greasy"
+        },
         "tastes": {
           "light": "Light Flavor",
           "spicy": "Spicy & Satisfying",
@@ -48,7 +93,33 @@
           "sour": "Tangy & Refreshing",
           "savory": "Rich & Savory",
           "crispy": "Crispy & Crunchy"
-        }
+        },
+        "tastePrompts": {
+          "light": "Light flavor, less oil and salt, highlighting the natural taste of ingredients",
+          "spicy": "Spicy and stimulating, rich in layers, perfect for those who love spicy food",
+          "sweet": "With a subtle sweetness, mild taste, suitable for all ages",
+          "sour": "Prominent sourness, appetizing and refreshing, perfect for summer",
+          "savory": "Full of umami, rich aroma, unforgettable aftertaste",
+          "crispy": "Crispy texture, distinct layers, satisfying chewiness"
+        },
+        "randomInspirations": [
+          "Create a dish with a story that reminds you of childhood",
+          "Fusion of Eastern and Western flavors, innovative combinations",
+          "Use the simplest method to create the warmest taste",
+          "Heartwarming cuisine perfect for rainy days",
+          "Instagram-worthy dishes with stunning presentation",
+          "Modern interpretation of mom's flavors",
+          "Healing late-night comfort food",
+          "Festive specialty dishes with holiday vibes",
+          "Healthy herbal medicinal cuisine",
+          "Portable delicacies perfect for picnics",
+          "Refined small bites with a sense of ceremony",
+          "Snacks perfect for binge-watching shows",
+          "Soups that warm both stomach and heart",
+          "Appetizers perfect for sharing with friends over drinks",
+          "Artistic plating with creative presentation",
+          "Energy-boosting dishes perfect after workouts"
+        ]
       }
     },
     "step3": {

+ 72 - 1
src/i18n/locales/zh.json

@@ -1,4 +1,41 @@
 {
+  "navigation": {
+    "appName": "一饭封神",
+    "appSlogan": "灶间有AI,顿顿米其林!",
+    "home": "主页",
+    "todayEat": "美食盲盒",
+    "tableDesign": "满汉全席",
+    "fortuneCooking": "玄学厨房",
+    "sauceDesign": "酱料大师",
+    "more": "更多",
+    "favorites": "我的收藏",
+    "gallery": "封神图鉴",
+    "about": "关于我们",
+    "scrollHint": "← 左右滑动查看更多功能 →",
+    "pageTitle": {
+      "home": "一饭封神",
+      "todayEat": "今日吃啥",
+      "tableDesign": "一桌好菜师",
+      "howToCook": "菜谱指南",
+      "sauceDesign": "酱料设计大师",
+      "fortuneCooking": "玄学厨房",
+      "favorites": "我的收藏",
+      "gallery": "封神图鉴",
+      "about": "关于一饭封神"
+    },
+    "pageSubtitle": {
+      "home": "灶间有AI,顿顿米其林!",
+      "todayEat": "盲盒美食:'绝了!' or '寄了!'",
+      "tableDesign": "让每顿饭,都有剧本!",
+      "howToCook": "AI大师手把手教学!",
+      "sauceDesign": "专业酱料制作,调味灵魂升华!",
+      "fortuneCooking": "星辰指引美食,占卜预见美味!",
+      "favorites": "珍藏美味,随时回味!",
+      "gallery": "每一帧都是厨艺的封神时刻!",
+      "about": "算法烹万物,一键即封神!",
+      "default": "LEGENDARY STATUS FROM A SINGLE MEAL!"
+    }
+  },
   "home": {
     "pageTitle": "首页",
     "step1": {
@@ -41,6 +78,14 @@
           "breakfast": "营养早餐",
           "lunch": "工作午餐"
         },
+        "scenePrompts": {
+          "family": "适合全家人一起享用的家常菜,老少皆宜,营养均衡",
+          "romantic": "适合情侣约会的精致菜品,卖相精美,氛围浪漫",
+          "quick": "制作简单快速的菜品,15分钟内完成,适合忙碌时光",
+          "party": "适合朋友聚会的下酒菜或小食,方便分享",
+          "breakfast": "健康营养的早餐搭配,提供一天的活力",
+          "lunch": "适合上班族的午餐,营养丰富且不油腻"
+        },
         "tastes": {
           "light": "清淡口味",
           "spicy": "香辣过瘾",
@@ -48,7 +93,33 @@
           "sour": "酸爽开胃",
           "savory": "鲜香浓郁",
           "crispy": "酥脆爽口"
-        }
+        },
+        "tastePrompts": {
+          "light": "口味清淡,少油少盐,突出食材本味",
+          "spicy": "香辣刺激,层次丰富,适合喜欢辣味的人",
+          "sweet": "带有淡淡甜味,口感温和,老少皆宜",
+          "sour": "酸味突出,开胃解腻,适合夏天享用",
+          "savory": "鲜味十足,香气浓郁,回味无穷",
+          "crispy": "口感酥脆,层次分明,嚼劲十足"
+        },
+        "randomInspirations": [
+          "制作一道有故事的菜,让人回味童年",
+          "融合东西方口味,创新搭配",
+          "用最简单的方法,做出最温暖的味道",
+          "适合雨天享用的暖心料理",
+          "颜值超高的网红打卡菜品",
+          "妈妈味道的现代演绎",
+          "适合深夜的治愈系美食",
+          "带有节日氛围的特色菜",
+          "健康养生的药膳料理",
+          "适合野餐的便携美食",
+          "有仪式感的精致小食",
+          "适合看剧时享用的小零食",
+          "能够暖胃暖心的汤品",
+          "适合和朋友分享的下酒菜",
+          "充满创意的摆盘艺术菜",
+          "适合运动后补充能量的料理"
+        ]
       }
     },
     "step3": {

+ 32 - 32
src/views/Home.vue

@@ -683,21 +683,21 @@ let loadingInterval: NodeJS.Timeout | null = null
 
 // 预设选项数据
 const scenePresets = [
-    { id: 'family', name: t('home.step2.customRequest.scenes.family'), prompt: '适合全家人一起享用的家常菜,老少皆宜,营养均衡' },
-    { id: 'romantic', name: t('home.step2.customRequest.scenes.romantic'), prompt: '适合情侣约会的精致菜品,卖相精美,氛围浪漫' },
-    { id: 'quick', name: t('home.step2.customRequest.scenes.quick'), prompt: '制作简单快速的菜品,15分钟内完成,适合忙碌时光' },
-    { id: 'party', name: t('home.step2.customRequest.scenes.party'), prompt: '适合朋友聚会的下酒菜或小食,方便分享' },
-    { id: 'breakfast', name: t('home.step2.customRequest.scenes.breakfast'), prompt: '健康营养的早餐搭配,提供一天的活力' },
-    { id: 'lunch', name: t('home.step2.customRequest.scenes.lunch'), prompt: '适合上班族的午餐,营养丰富且不油腻' }
+    { id: 'family', name: t('home.step2.customRequest.scenes.family'), prompt: t('home.step2.customRequest.scenePrompts.family') },
+    { id: 'romantic', name: t('home.step2.customRequest.scenes.romantic'), prompt: t('home.step2.customRequest.scenePrompts.romantic') },
+    { id: 'quick', name: t('home.step2.customRequest.scenes.quick'), prompt: t('home.step2.customRequest.scenePrompts.quick') },
+    { id: 'party', name: t('home.step2.customRequest.scenes.party'), prompt: t('home.step2.customRequest.scenePrompts.party') },
+    { id: 'breakfast', name: t('home.step2.customRequest.scenes.breakfast'), prompt: t('home.step2.customRequest.scenePrompts.breakfast') },
+    { id: 'lunch', name: t('home.step2.customRequest.scenes.lunch'), prompt: t('home.step2.customRequest.scenePrompts.lunch') }
 ]
 
 const tastePresets = [
-    { id: 'light', name: t('home.step2.customRequest.tastes.light'), prompt: '口味清淡,少油少盐,突出食材本味' },
-    { id: 'spicy', name: t('home.step2.customRequest.tastes.spicy'), prompt: '香辣刺激,层次丰富,适合喜欢辣味的人' },
-    { id: 'sweet', name: t('home.step2.customRequest.tastes.sweet'), prompt: '带有淡淡甜味,口感温和,老少皆宜' },
-    { id: 'sour', name: t('home.step2.customRequest.tastes.sour'), prompt: '酸味突出,开胃解腻,适合夏天享用' },
-    { id: 'savory', name: t('home.step2.customRequest.tastes.savory'), prompt: '鲜味十足,香气浓郁,回味无穷' },
-    { id: 'crispy', name: t('home.step2.customRequest.tastes.crispy'), prompt: '口感酥脆,层次分明,嚼劲十足' }
+    { id: 'light', name: t('home.step2.customRequest.tastes.light'), prompt: t('home.step2.customRequest.tastePrompts.light') },
+    { id: 'spicy', name: t('home.step2.customRequest.tastes.spicy'), prompt: t('home.step2.customRequest.tastePrompts.spicy') },
+    { id: 'sweet', name: t('home.step2.customRequest.tastes.sweet'), prompt: t('home.step2.customRequest.tastePrompts.sweet') },
+    { id: 'sour', name: t('home.step2.customRequest.tastes.sour'), prompt: t('home.step2.customRequest.tastePrompts.sour') },
+    { id: 'savory', name: t('home.step2.customRequest.tastes.savory'), prompt: t('home.step2.customRequest.tastePrompts.savory') },
+    { id: 'crispy', name: t('home.step2.customRequest.tastes.crispy'), prompt: t('home.step2.customRequest.tastePrompts.crispy') }
 ]
 
 const eventHandler = (event: any) => {
@@ -841,30 +841,30 @@ const limitCustomPrompt = () => {
 }
 
 // 随机灵感数据
-const randomInspirations = [
-    '制作一道有故事的菜,让人回味童年',
-    '融合东西方口味,创新搭配',
-    '用最简单的方法,做出最温暖的味道',
-    '适合雨天享用的暖心料理',
-    '颜值超高的网红打卡菜品',
-    '妈妈味道的现代演绎',
-    '适合深夜的治愈系美食',
-    '带有节日氛围的特色菜',
-    '健康养生的药膳料理',
-    '适合野餐的便携美食',
-    '有仪式感的精致小食',
-    '适合看剧时享用的小零食',
-    '能够暖胃暖心的汤品',
-    '适合和朋友分享的下酒菜',
-    '充满创意的摆盘艺术菜',
-    '适合运动后补充能量的料理'
-]
+const randomInspirations = computed(() => [
+    t('home.step2.customRequest.randomInspirations.0'),
+    t('home.step2.customRequest.randomInspirations.1'),
+    t('home.step2.customRequest.randomInspirations.2'),
+    t('home.step2.customRequest.randomInspirations.3'),
+    t('home.step2.customRequest.randomInspirations.4'),
+    t('home.step2.customRequest.randomInspirations.5'),
+    t('home.step2.customRequest.randomInspirations.6'),
+    t('home.step2.customRequest.randomInspirations.7'),
+    t('home.step2.customRequest.randomInspirations.8'),
+    t('home.step2.customRequest.randomInspirations.9'),
+    t('home.step2.customRequest.randomInspirations.10'),
+    t('home.step2.customRequest.randomInspirations.11'),
+    t('home.step2.customRequest.randomInspirations.12'),
+    t('home.step2.customRequest.randomInspirations.13'),
+    t('home.step2.customRequest.randomInspirations.14'),
+    t('home.step2.customRequest.randomInspirations.15')
+])
 
 // 获取随机灵感
 const getRandomInspiration = () => {
     showCustomPrompt.value = true
-    const randomIndex = Math.floor(Math.random() * randomInspirations.length)
-    const inspiration = randomInspirations[randomIndex]
+    const randomIndex = Math.floor(Math.random() * randomInspirations.value.length)
+    const inspiration = randomInspirations.value[randomIndex]
 
     if (customPrompt.value.trim()) {
         const newContent = customPrompt.value.trim() + ',' + inspiration