zydx-plus 1.35.577 → 1.35.578

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zydx-plus",
3
- "version": "1.35.577",
3
+ "version": "1.35.578",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -247,6 +247,9 @@ export default defineComponent({
247
247
  handler: async function (v) {
248
248
  await this.$nextTick();
249
249
  if (Array.isArray(v)) {
250
+ this.checkbox_state = Array.from({ length: this.data.length + 1 }, () => {
251
+ return false;
252
+ });
250
253
  for (const idx of v) {
251
254
  this.checkbox_state[idx] = true;
252
255
  }
@@ -818,6 +818,10 @@ export default {
818
818
  r.data.annex.active = true
819
819
  this.uploadAttData.push(r.data.annex)
820
820
  this.$emit('enclosureSuccess', r.data.annex, html2json(this.editor.getHTML()).child)
821
+ } else if (r.data) { // 学生端-生问生答-问答=提问详情及回答-实施回答的上传附件返回r.data
822
+ r.data.active = true
823
+ this.uploadAttData.push(r.data)
824
+ this.$emit('enclosureSuccess', r.data, html2json(this.editor.getHTML()).child)
821
825
  } else {
822
826
  file.active = true
823
827
  this.uploadAttData.push(file)
package/src/index.js CHANGED
@@ -89,7 +89,7 @@ function install(app) {
89
89
  }
90
90
 
91
91
  export default {
92
- version: '1.35.577',
92
+ version: '1.35.578',
93
93
  install,
94
94
  Calendar,
95
95
  Message,