Browse Source

feat: 提示信息修改
1. 抓拍照片保存失败 -> 网络连接失败,请更换网络环境重试
2. 系统检测出错(e-01) -> 请关闭远程控制程序
3. 系统检测出错(e-02) -> 请关闭虚拟摄像头软件或直接更换电脑

chenhao 2 years ago
parent
commit
1432504c85

+ 1 - 1
src/features/OnlineExam/FaceRecognition.vue

@@ -293,7 +293,7 @@ async function uploadToServer(captureBlob: Blob): Promise<[string, string]> {
       dtl: "保存抓拍照片到服务器失败!",
       possibleError: e,
     });
-    $message.error("抓拍照片保存失败!");
+    $message.error("网络连接失败, 请更换网络环境重试");
     throw new Error("抓拍照片保存失败!");
   }
 

+ 2 - 2
src/features/UserLogin/useRemoteAppChecker.tsx

@@ -40,7 +40,7 @@ export function useRemoteAppChecker() {
         dtl: "读取remoteApplication.txt出错",
         ext: { errorType: "e-01", applicationNames },
       });
-      $message.error("系统检测出错(e-01),请退出程序后重试!", {
+      $message.error("请关闭远程控制程序后重试", {
         duration: 24 * 60 * 60 * 1000,
       });
       disableLoginBtnBecauseRemoteApp = true;
@@ -149,7 +149,7 @@ export function useRemoteAppChecker() {
           dtl: "unlink remoteApplication.txt 失败",
           possibleError: error,
         });
-        $message.error("系统检测出错(e-01),请退出程序后重试!", {
+        $message.error("请关闭远程控制程序后重试", {
           duration: 24 * 60 * 60 * 1000,
         });
         throw error;

+ 2 - 2
src/features/UserLogin/useVCamChecker.tsx

@@ -31,7 +31,7 @@ export function useVCamChecker() {
         dtl: "读取CameraInfo.txt出错",
         ext: { errorType: "e-02", applicationNames: cameraInfo },
       });
-      $message.error("系统检测出错(e-02),请退出程序后重试!", {
+      $message.error("请关闭虚拟摄像头软件或直接更换电脑", {
         duration: 24 * 60 * 60 * 1000,
       });
       return;
@@ -96,7 +96,7 @@ export function useVCamChecker() {
           dtl: "unlink CameraInfo.txt 失败",
           possibleError: error,
         });
-        $message.error("系统检测出错(e-02),请退出程序后重试!", {
+        $message.error("请关闭虚拟摄像头软件或直接更换电脑", {
           duration: 24 * 60 * 60 * 1000,
         });
         throw error;