瀏覽代碼

fix styles; fetch 500 never to catch

Michael Wang 6 年之前
父節點
當前提交
b2610623d2
共有 2 個文件被更改,包括 12 次插入3 次删除
  1. 2 1
      .env.development
  2. 10 2
      src/features/Login/Login.vue

+ 2 - 1
.env.development

@@ -1,2 +1,3 @@
 VUE_APP_TK_SERVER_URL=http://192.168.10.39:8868
-VUE_APP_WK_SERVER_SOCKET=wss://ecs-dev.qmth.com.cn:8878/oewebsocket/
+VUE_APP_WK_SERVER_SOCKET=wss://ecs-dev.qmth.com.cn:8878/oewebsocket/
+VUE_APP_WK_SERVER_SOCKET_FOR_AUDIO=wss://ecs-dev.qmth.com.cn:8878/oewebsocket/audioAnswer/

+ 10 - 2
src/features/Login/Login.vue

@@ -162,8 +162,12 @@ export default {
         "/api/ecs_core/org/propertyNoSession/OE_STUDENT_SYS_NAME?domainName=" +
           this.schoolDomain
       );
-      const productName = await res.text();
-      this.productName = productName || "远程教育网络考试";
+      if (res.ok) {
+        const productName = await res.text();
+        this.productName = productName || "远程教育网络考试";
+      } else {
+        this.productName = "远程教育网络考试";
+      }
     } catch (e) {
       this.productName = "远程教育网络考试";
     }
@@ -533,6 +537,10 @@ export default {
 .close:hover {
   color: #444444;
 }
+
+.footer {
+  position: relative;
+}
 </style>
 
 <style>