Sfoglia il codice sorgente

feat: 修复已知问题

rindy 5 mesi fa
parent
commit
a85d820ce1

+ 3 - 2
package.json

@@ -2,8 +2,9 @@
   "name": "helpercenter",
   "version": "1.0.0",
   "description": "helpercenter",
-  "dependencies": {},
-  "devDependencies": {},
+  "dependencies": {
+    "esbuild": "0.24.2"
+  },
   "scripts": {
     "build-backend": "pnpm --filter @4dkankan/helperbackend run build",
     "build-backend-html": "pnpm --filter @4dkankan/helperfrontend run build",

+ 6 - 7
packages/backend/.env

@@ -1,14 +1,13 @@
 # 服务端口
 APP_PORT=8085
 # DB
-# DB_HOST=120.24.144.164
-DB_HOST=localhost
-# DB_PORT=3306
-DB_PORT=3307
+DB_HOST=120.24.144.164
+# DB_HOST=localhost
+DB_PORT=3306
 DB_USER=root
-DB_PWD='laser'
-DB_DATABASE=help_center
-DB_SYNC=true # 是否开启同步,生产环境请设置成 false
+DB_PWD='4Dage@4Dage#@168'
+DB_DATABASE=4dkankan_motion
+DB_SYNC=false # 是否开启同步,生产环境请设置成 false
 
 # Redis
 REDIS_URL=redis://192.168.0.47:6379

+ 1 - 1
packages/web/src/components/header.vue

@@ -2,7 +2,7 @@
   <div class="header grid min-h-sm w-full flex flex-col">
     <div class="w-full h-[100px] flex max-w-screen-xl my-0 mx-auto justify-between items-center">
       <div class="logo">
-        <a href="https://www.4dkankan.com/#/" target="_blank"> 
+        <a href="/"> 
           <img v-if="locale==='zh'" src="@/assets/img/logo_4dge_cn.png" alt="logo" />
           <img v-if="locale==='en'" src="@/assets/img/logo_4dge_en.png" alt="logo" />
         </a>

+ 1 - 1
packages/web/src/components/subHeader.vue

@@ -2,7 +2,7 @@
   <div class="header grid min-h-[160px] w-full bg-cyan-800 flex flex-col">
     <div class="w-full h-[100px] flex max-w-screen-xl my-0 mx-auto justify-between items-center">
       <div class="logo">
-        <a href="https://www.4dkankan.com/#/" target="_blank"> 
+        <a href="/"> 
           <img v-if="locale === 'zh'" src="@/assets/img/logo_4dge_cn.png" alt="logo" />
           <img v-if="locale === 'en'" src="@/assets/img/logo_4dge_en.png" alt="logo" />
         </a>

+ 3 - 3
packages/web/src/locales/json/en.json

@@ -1,7 +1,7 @@
 {
   "zh": "简体中文",
   "en": "English",
-  "helperTip": "What Can I help you?",
+  "helperTip": "Help Center",
   "enter_key": "Enter keywords",
   "web_title": "Help Center",
   "sell_cor": "Business Cooperation",
@@ -25,7 +25,7 @@
   "company_profile": "Company Profile",
   "news_report": "News Report",
   "distributor": "Be Our Distributor",
-  "publish": "Publish At",
+  "publish": "Last updated",
   "main_content": "Main Content",
   "read": "Read",
   "more": "More",
@@ -37,7 +37,7 @@
   "no_data_article": "others",
   "no_article": "Article not exist",
   "go_home": "Go Homepage",
-  "home": "homepage",
+  "home": "Help Center",
   "all": "all",
   "records": " records",
   "search_res":  "Search result"

+ 1 - 1
packages/web/src/pages/showcate/[id].vue

@@ -141,7 +141,7 @@ const handleBreadcrumb = (bread: TreeNode) => {
 
 <style lang="scss" scoped>
 :deep(.content-html img) {
-  width: 100% !important;
+  // width: 100% !important;
   height: auto;
 }
 

+ 2 - 3
packages/web/src/pages/showdoc/[id].vue

@@ -30,8 +30,7 @@
             <n-h1 class="font-700"> {{ detail.title }}</n-h1>
             <span class="flex flex-row gap-col-6 pb-[15px]">
               <p>{{ $t('publish') }} {{ dayjs(detail.createTime).format('YYYY-MM-DD') }}</p>
-              <p>{{ $t('read') }} ( {{ detail.readCount }} )</p>
-
+              <!-- <p>{{ $t('read') }} ( {{ detail.readCount }} )</p> -->
             </span>
           </div>
 
@@ -212,7 +211,7 @@ const handleBreadcrumb = (bread: TreeNode) => {
 
 <style lang="scss" scoped>
 :deep(.content-html img) {
-  width: 100% !important;
+  // width: 100% !important;
   height: auto;
 }
 

File diff suppressed because it is too large
+ 33 - 26
pnpm-lock.yaml