Browse Source

放大登录页防作弊的提示

Michael Wang 3 năm trước cách đây
mục cha
commit
72bd71dc8d
1 tập tin đã thay đổi với 14 bổ sung3 xóa
  1. 14 3
      src/features/Login/Login.vue

+ 14 - 3
src/features/Login/Login.vue

@@ -1031,7 +1031,13 @@ export default {
           );
           this.disableLoginBtnBecauseRemoteApp = true;
           this.$Message.info({
-            content: "在考试期间,请关掉" + names + "软件,诚信考试。",
+            render: () => {
+              return (
+                <div style="padding-left: 4px; line-height: 80px; font-size: 36px; color: white; background-color: #D9001B">
+                  在考试期间,请关掉{names}软件,诚信考试。
+                </div>
+              );
+            },
             duration: 2 * 24 * 60 * 60,
           });
         } else {
@@ -1106,8 +1112,13 @@ export default {
             if (applicationNames.toUpperCase().includes(vc.toUpperCase())) {
               this.disableLoginBtnBecauseVCam = true;
               this.$Message.info({
-                content:
-                  "在考试期间,请关掉" + "虚拟摄像头" + "软件,诚信考试。",
+                render: () => {
+                  return (
+                    <div style="padding-left: 4px; line-height: 80px; font-size: 36px; color: white; background-color: #D9001B">
+                      在考试期间,请关掉虚拟摄像头软件,诚信考试。
+                    </div>
+                  );
+                },
                 duration: 2 * 24 * 60 * 60,
               });
               console.log(applicationNames);