Browse Source

feat: save

gemercheung 6 months ago
parent
commit
3ce54d15e3
2 changed files with 9 additions and 5 deletions
  1. 1 1
      packages/web/index.html
  2. 8 4
      packages/web/src/components/header.vue

+ 1 - 1
packages/web/index.html

@@ -2,7 +2,7 @@
 <html lang="en">
   <head>
     <meta charset="UTF-8" />
-    <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
+    <link rel="shortcut icon" href="//4dkk.4dage.com/FDKKIMG/icon/kankan_icon.ico">
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title>帮忙中心</title>
   </head>

+ 8 - 4
packages/web/src/components/header.vue

@@ -5,7 +5,7 @@
         <a href="/"> <img src="@/assets/img/logo_4dge_cn.png" alt="logo" /></a>
       </div>
       <div class="menu">
-        <n-dropdown :options="options" @select="handleSelect" >
+        <n-dropdown :options="options" @select="handleSelect">
           <n-button type="primary" ghost>{{ locale === 'zh' ? $t('zh') : $t('en') }}</n-button>
         </n-dropdown>
       </div>
@@ -14,9 +14,9 @@
     <div class="search-box w-full flex justify-center items-center flex-col">
       <n-h1 class="font-size-[48px] font-500">{{ $t('helperTip') }}</n-h1>
 
-      <n-auto-complete v-model:value="keySearch" :options="searchOptions" class="max-w-[640px]" size="large" round
-        :placeholder="$t('enter_key')" blur-after-select @select="(index: number) => handleAutoSelect(index, searchOptions)"
-        @keydown.enter="handleSearch">
+      <n-auto-complete v-model:value="keySearch" :options="searchOptions" class="search-box max-w-[640px]" size="large"
+        round :placeholder="$t('enter_key')" blur-after-select
+        @select="(index: number) => handleAutoSelect(index, searchOptions)" @keydown.enter="handleSearch">
         <template #prefix>
           <n-icon :component="SearchOutline" />
         </template>
@@ -97,4 +97,8 @@ const handleSearch = () => {
   background-size: cover;
   background-position: top center;
 }
+
+.search-box .n-input {
+  --n-border-radius: 10px !important;
+}
 </style>