Browse Source

平板个人策略

gzb
雍文秀 5 months ago
parent
commit
9fdd4a8ec7
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/views/schoolSection/strategy/personalStrategy.vue

+ 1
- 1
src/views/schoolSection/strategy/personalStrategy.vue View File

778
         form.padid = this.strategyInfo.padid;
778
         form.padid = this.strategyInfo.padid;
779
         form.rversion = this.strategyInfo.rversion;
779
         form.rversion = this.strategyInfo.rversion;
780
       }
780
       }
781
-      let api = this.strategyInfo.model === "edit" ? stPad_edit : stPad_add;
781
+      let api = !isNaN(this.strategyInfo.padid) ? stPad_edit : stPad_add;
782
       api(form).then((res) => {
782
       api(form).then((res) => {
783
         if (res.code === 0) {
783
         if (res.code === 0) {
784
           this.$Message.success(res.msg);
784
           this.$Message.success(res.msg);

Loading…
Cancel
Save