11wqe1 1 год назад
Родитель
Сommit
7a4032d72b
1 измененных файлов с 7 добавлено и 3 удалено
  1. 7 3
      src/components/pages/test/shareBox/index.vue

+ 7 - 3
src/components/pages/test/shareBox/index.vue

@@ -74,10 +74,12 @@ export default {
             type: Object
         },
         TeachingValue: {
-            type: String
+            type: String,
+            default: ''
         },
         TeachName: {
-            type: Array
+            type: Array,
+            default: ''
         }
     },
     data() {
@@ -95,7 +97,8 @@ export default {
             if (this.TeachingValue == '') {
                 return this.testJson.juriP ? this.testJson.juriP : '所有人'
             }else{
-                return this.TeachName ? this.TeachName[0].name :'所有人'
+                // return this.testJson.juriP ? this.testJson.juriP : '所有人'
+                return this.TeachName ? this.TeachName[0].name : this.testJson.juriP ? this.testJson.juriP : '所有人'
             }
         }
     },
@@ -205,6 +208,7 @@ export default {
     },
     mounted(){
         console.log(top.origin);
+        console.log(this.testJson);
         // this.origin = top.origin
     },
 };