Przeglądaj źródła

修改产品名称

Michael Wang 6 lat temu
rodzic
commit
f7a8e93156
1 zmienionych plików z 5 dodań i 4 usunięć
  1. 5 4
      src/features/Login/Login.vue

+ 5 - 4
src/features/Login/Login.vue

@@ -16,7 +16,7 @@
         </div>
 
         <div class="qm-title-text" style="margin: 40px 0 20px 0">
-          远程教育网络考试
+          {{productName}}
         </div>
 
         <div style="margin: 0 40px 40px 40px">
@@ -60,7 +60,7 @@ export default {
   data() {
     return {
       logoPath: "/api/ecs_core/org/logo?domain=" + this.$route.params.domain,
-      productName: "远程教育网络考试",
+      productName: "",
       loginType: "STUDENT_CODE",
       errorInfo: "",
       loginForm: {
@@ -98,9 +98,10 @@ export default {
 
     try {
       const res = await this.$http.get(
-        "/api/ecs_core/org/getRootOrgByCode?code=" + this.$route.params.domain
+        "/api/ecs_core/org/propertyNoSession/OE_STUDENT_SYS_NAME?domainName=" +
+          this.$route.params.domain
       );
-      const productName = res.data.examSysName;
+      const productName = res.data;
       this.productName = productName || "远程教育网络考试";
     } catch (e) {
       this.productName = "远程教育网络考试";