刘洋 10 tháng trước cách đây
mục cha
commit
74a1647d97
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/modules/examwork/view/ipConfig.vue

+ 2 - 1
src/modules/examwork/view/ipConfig.vue

@@ -429,7 +429,8 @@ export default {
     editSubmit() {
       this.$refs.editRef.validate((valid) => {
         if (valid) {
-          let url = EXAM_WORK_API + "/org/ip/update";
+          let path = this.curRow ? "/org/ip/update" : "/org/ip/save";
+          let url = EXAM_WORK_API + path;
           let data = {
             ...this.editForm,
             // ip: encodeURIComponent(this.editForm.ip),