Browse Source

增加docx文件类型的判断

秦鹏 3 years ago
parent
commit
68807568f1

+ 4 - 1
src/components/Header.vue

@@ -315,7 +315,10 @@ export default {
     if (user) {
       _this.userMessage = JSON.parse(user);
     }
-    _this.configInfor = JSON.parse(getConfig());
+    let config = getConfig();
+    if (config) {
+      _this.configInfor = JSON.parse(config);
+    }
     _this.getLangList();
     _this.getNotReadMessage();
     _this.headTimer = setInterval(() => {

+ 2 - 1
src/components/payment/Confirmorder.vue

@@ -112,6 +112,8 @@ export default {
           return "exceil";
         case "doc":
           return "word";
+        case "docx":
+          return "word";
         case "word":
           return "word";
         default:
@@ -254,7 +256,6 @@ export default {
       .p3 {
         margin-top: 10px;
       }
-      
     }
     .price {
       p {

+ 2 - 0
src/components/payment/Payment.vue

@@ -125,6 +125,8 @@ export default {
           return "exceil";
         case "doc":
           return "word";
+        case "docx":
+          return "word";
         case "word":
           return "word";
         default:

+ 2 - 0
src/components/teacher-dev/Teaching.vue

@@ -85,6 +85,8 @@ export default {
           return "exceil";
         case "doc":
           return "word";
+        case "docx":
+          return "word";
         case "word":
           return "word";
         default:

+ 2 - 0
src/components/teacher-dev/Textbook.vue

@@ -81,6 +81,8 @@ export default {
           return "exceil";
         case "doc":
           return "word";
+        case "docx":
+          return "word";
         case "word":
           return "word";
         default: