Selaa lähdekoodia

fix:更换字体

lanxin 3 kuukautta sitten
vanhempi
commit
fcef76061a

+ 0 - 7
src/assets/data/questions.ts

@@ -505,13 +505,6 @@ function generateThreeOptions(options: { id: number; title: string }[]) {
 // 选项:先随机从2,3,4出两个,再和选项1随机组成最终选项
 // 题型:随机这些题目
 
-const randomQuestions = questions.map((questionArray) => {
-  const question = shuffle(questionArray)[0];
-  return {
-    ...question,
-    options: generateThreeOptions(question.options),
-  };
-});
 
 export  {
   questions,

BIN
src/assets/font/SourceHanSerifCN-SemiBold.otf


BIN
src/assets/font/sy.otf


+ 3 - 3
src/index.css

@@ -6,8 +6,8 @@
   position: relative;
 }
 @font-face {
-  font-family: 'SourceHanSerifCN';
-  src: url('./assets/font/sy.otf') format('opentype');
+  font-family: 'hwkt';
+  src: url('./assets/font/hwkt.TTF') format('truetype');
 }
 body {
   /* width: 100%;
@@ -17,5 +17,5 @@ body {
   padding: 0;
   box-sizing: border-box;
   -webkit-tap-highlight-color: transparent;
-  font-family: 'SourceHanSerifCN';
+  font-family: 'hwkt';
 }