Explorar el Código

平板个人策略

gzb
雍文秀 hace 5 meses
padre
commit
9fdd4a8ec7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/views/schoolSection/strategy/personalStrategy.vue

+ 1
- 1
src/views/schoolSection/strategy/personalStrategy.vue Ver fichero

@@ -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…
Cancelar
Guardar