chengjie преди 2 месеца
родител
ревизия
9c02259be0
променени са 2 файла, в които са добавени 32 реда и са изтрити 1 реда
  1. 21 1
      .vscode/settings.json
  2. 11 0
      src/api/miaoguo/literacyController.js

+ 21 - 1
.vscode/settings.json

@@ -26,5 +26,25 @@
26 26
         "sound": "off"
27 27
     },
28 28
     "terminal.integrated.enableVisualBell": false,
29
-    "Lingma.PreferredLanguage forCommitMessage": "简体中文"
29
+    "Lingma.PreferredLanguage forCommitMessage": "简体中文",
30
+    "workbench.colorCustomizations": {
31
+        "activityBar.activeBackground": "#1f6fd0",
32
+        "activityBar.background": "#1f6fd0",
33
+        "activityBar.foreground": "#e7e7e7",
34
+        "activityBar.inactiveForeground": "#e7e7e799",
35
+        "activityBarBadge.background": "#ee90bb",
36
+        "activityBarBadge.foreground": "#15202b",
37
+        "commandCenter.border": "#e7e7e799",
38
+        "sash.hoverBorder": "#1f6fd0",
39
+        "statusBar.background": "#1857a4",
40
+        "statusBar.foreground": "#e7e7e7",
41
+        "statusBarItem.hoverBackground": "#1f6fd0",
42
+        "statusBarItem.remoteBackground": "#1857a4",
43
+        "statusBarItem.remoteForeground": "#e7e7e7",
44
+        "titleBar.activeBackground": "#1857a4",
45
+        "titleBar.activeForeground": "#e7e7e7",
46
+        "titleBar.inactiveBackground": "#1857a499",
47
+        "titleBar.inactiveForeground": "#e7e7e799"
48
+    },
49
+    "peacock.color": "#1857a4"
30 50
 }

+ 11 - 0
src/api/miaoguo/literacyController.js

@@ -66,6 +66,11 @@ export async function GetMiaoguoAISearch(ctx) {
66 66
                         obj.Key=param.Word;
67 67
                         obj.TypeName="翻译";
68 68
                     }
69
+                    else if (literacyItem[i].SearchType=="shici"){
70
+                        obj.Type="shici";
71
+                        obj.Key=param.Word;
72
+                        obj.TypeName="诗词";
73
+                    }
69 74
                     result.List.push(obj);
70 75
                 }
71 76
             }
@@ -84,6 +89,12 @@ export async function GetMiaoguoAISearch(ctx) {
84 89
                     obj.Key=param.Word;
85 90
                     obj.TypeName="字词";
86 91
                     result.List.unshift(obj);
92
+                    for(let i=1;i<result.List.length;i++){
93
+                        if (result.List[i].Type=="zici"){
94
+                            result.List.splice(i,1);
95
+                            break;
96
+                        }
97
+                    }
87 98
                 }
88 99
             }
89 100