Sfoglia il codice sorgente

平板个人策略

gzb
雍文秀 5 mesi fa
parent
commit
9fdd4a8ec7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      src/views/schoolSection/strategy/personalStrategy.vue

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

@@ -778,7 +778,7 @@ export default {
778 778
         form.padid = this.strategyInfo.padid;
779 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 782
       api(form).then((res) => {
783 783
         if (res.code === 0) {
784 784
           this.$Message.success(res.msg);

Loading…
Annulla
Salva