zhusiqing 5 lat temu
rodzic
commit
88a2d051f9
2 zmienionych plików z 7 dodań i 2 usunięć
  1. 1 1
      server.js
  2. 6 1
      src/components/Card.vue

+ 1 - 1
server.js

@@ -94,7 +94,7 @@ router.put('/status/:code', ctx => {
   const { code } = params
   const { index } = request.body
   const list = cache.get(code) || []
-  if (!index) {
+  if (!index && index !== 0) {
     throw new Error('index is not find')
   }
   if (!list || !list.length) {

+ 6 - 1
src/components/Card.vue

@@ -115,7 +115,12 @@ export default {
     display: flex;
     justify-content: center;
     align-items: center;
-    font-size: 20px;
+    font-size: 40px;
+  }
+  @media screen and (max-width: 800px) {
+    .front, .back {
+      font-size: 20px;
+    }
   }
   .front {
     z-index: 2;