@jx3box/jx3box-common-ui 8.5.2 → 8.5.3

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": "@jx3box/jx3box-common-ui",
3
- "version": "8.5.2",
3
+ "version": "8.5.3",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -134,11 +134,17 @@ export default {
134
134
  this.visible = true;
135
135
  return;
136
136
  }
137
- recoverTopicFromPosts(this.form).then(() => {
138
- this.$message.success("操作成功");
139
- this.close();
140
- this.clearForm();
141
- });
137
+
138
+ this.$refs.form?.validate(valid => {
139
+ if (valid) {
140
+ recoverTopicFromPosts(this.form).then(() => {
141
+ this.$message.success("操作成功");
142
+ this.close();
143
+ this.clearForm();
144
+ });
145
+ }
146
+ })
147
+
142
148
  },
143
149
  onCancel() {
144
150
  this.close();