SanHQin 2 月之前
父節點
當前提交
d2349981d7

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       background: #e6eaf0;
       font-family: '黑体';
-    }</style><link href=./static/css/app.11e87daf5b359f7da6ac3458ca8f72c7.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.161e82026ac2ae03ab6f.js></script><script type=text/javascript src=./static/js/vendor.bb486323f0fa002ba2e7.js></script><script type=text/javascript src=./static/js/app.93db60e9089738cdcb9c.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.05f7104cde4d75bccd914d44aad11358.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.161e82026ac2ae03ab6f.js></script><script type=text/javascript src=./static/js/vendor.bb486323f0fa002ba2e7.js></script><script type=text/javascript src=./static/js/app.fc6007817c1b17aa3d32.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

文件差異過大導致無法顯示
+ 0 - 0
dist/static/css/app.05f7104cde4d75bccd914d44aad11358.css


文件差異過大導致無法顯示
+ 0 - 0
dist/static/css/app.05f7104cde4d75bccd914d44aad11358.css.map


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.fc6007817c1b17aa3d32.js


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.fc6007817c1b17aa3d32.js.map


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/manifest.161e82026ac2ae03ab6f.js.map


+ 16 - 2
src/components/pages/testStudent/view/preview.vue

@@ -91,6 +91,11 @@ export default {
       gcourseid: this.$route.query.courseid,
       back:this.$route.query.back
     }
+  },
+  watch:{
+    cJson(newValue){
+      console.log("newValue",newValue)
+    }
   },
 	computed:{
 		showAutoFillBtn(){
@@ -245,11 +250,21 @@ export default {
           if (res.data[2].length) {
             this.cJson = JSON.parse(res.data[2][0].courseJson)
 
+            this.$forceUpdate()
+
             let cJson = this.setJSON(JSON.parse(JSON.stringify(this.cJson)))
             let cJson2 = this.setJSON(this.setJson2(JSON.parse(JSON.stringify(this.cJson2))))
 
             if (JSON.stringify(cJson) != JSON.stringify(cJson2)) {
-              this.isReset = true
+              cJson2.forEach(i=>{
+                let _findIndex = this.cJson.findIndex(i2=> i2.ttype == i.ttype && i2.type == i.type && i2.json.title==i.json.title);
+                if(_findIndex!=-1){
+                  i.json = this.cJson[_findIndex].json;
+                }
+              })
+
+              this.cJson = JSON.parse(JSON.stringify(cJson2));
+              this.isReset = true;
             }
 
 
@@ -482,7 +497,6 @@ export default {
 						this.isReset = true;
 					}
           this.$forceUpdate();
-
         })
         .catch((err) => {
           this.loading = false

部分文件因文件數量過多而無法顯示