From 3f6e44001a8e02ad452b3488e8cd64bc1cb25194 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B0=8F=E8=AF=BA?= <1253070437@qq.com>
Date: Fri, 7 Jul 2023 01:06:24 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=9B=B4=E6=96=B0=E3=80=91=E6=9B=B4?=
 =?UTF-8?q?=E6=94=B9=E6=96=B0=E5=A2=9E=E7=BC=96=E8=BE=91=E8=A1=A8=E5=8D=95?=
 =?UTF-8?q?=E6=97=B6=E9=94=99=E8=AF=AF=E7=9A=84=E5=86=99=E6=B3=95=20#I7CH2?=
 =?UTF-8?q?V=20#I6SVT3=20#I6KOVG?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 snowy-admin-web/src/api/biz/bizOrgApi.js                  | 2 +-
 snowy-admin-web/src/api/biz/bizPositionApi.js             | 2 +-
 snowy-admin-web/src/api/biz/bizUserApi.js                 | 2 +-
 snowy-admin-web/src/api/dev/configApi.js                  | 2 +-
 snowy-admin-web/src/api/dev/dictApi.js                    | 2 +-
 snowy-admin-web/src/api/dev/jobApi.js                     | 2 +-
 snowy-admin-web/src/api/gen/genBasicApi.js                | 2 +-
 snowy-admin-web/src/api/gen/genConfigApi.js               | 2 +-
 snowy-admin-web/src/api/mobile/resource/buttonApi.js      | 2 +-
 snowy-admin-web/src/api/mobile/resource/menuApi.js        | 2 +-
 snowy-admin-web/src/api/mobile/resource/moduleApi.js      | 2 +-
 snowy-admin-web/src/api/sys/orgApi.js                     | 2 +-
 snowy-admin-web/src/api/sys/positionApi.js                | 2 +-
 snowy-admin-web/src/api/sys/resource/buttonApi.js         | 2 +-
 snowy-admin-web/src/api/sys/resource/fieldApi.js          | 2 +-
 snowy-admin-web/src/api/sys/resource/menuApi.js           | 2 +-
 snowy-admin-web/src/api/sys/resource/moduleApi.js         | 2 +-
 snowy-admin-web/src/api/sys/resource/spaApi.js            | 2 +-
 snowy-admin-web/src/api/sys/roleApi.js                    | 2 +-
 snowy-admin-web/src/api/sys/userApi.js                    | 2 +-
 snowy-admin-web/src/views/biz/org/form.vue                | 2 +-
 snowy-admin-web/src/views/biz/position/form.vue           | 2 +-
 snowy-admin-web/src/views/dev/config/otherConfig/form.vue | 2 +-
 snowy-admin-web/src/views/dev/dict/category/form.vue      | 2 +-
 snowy-admin-web/src/views/dev/job/form.vue                | 2 +-
 snowy-admin-web/src/views/gen/basic.vue                   | 2 +-
 snowy-admin-web/src/views/mobile/resource/button/form.vue | 2 +-
 snowy-admin-web/src/views/mobile/resource/module/form.vue | 2 +-
 snowy-admin-web/src/views/sys/org/form.vue                | 2 +-
 snowy-admin-web/src/views/sys/position/form.vue           | 2 +-
 snowy-admin-web/src/views/sys/resource/button/form.vue    | 2 +-
 snowy-admin-web/src/views/sys/resource/field/form.vue     | 2 +-
 snowy-admin-web/src/views/sys/resource/module/form.vue    | 2 +-
 snowy-admin-web/src/views/sys/role/form.vue               | 2 +-
 34 files changed, 34 insertions(+), 34 deletions(-)

diff --git a/snowy-admin-web/src/api/biz/bizOrgApi.js b/snowy-admin-web/src/api/biz/bizOrgApi.js
index ec614f53..c2600f83 100644
--- a/snowy-admin-web/src/api/biz/bizOrgApi.js
+++ b/snowy-admin-web/src/api/biz/bizOrgApi.js
@@ -32,7 +32,7 @@ export default {
 	},
 	// 提交表单 edit为true时为编辑,默认为新增
 	submitForm(data, edit = false) {
-		return request(edit ? 'add' : 'edit', data)
+		return request(edit ? 'edit' : 'add', data)
 	},
 	// 删除机构
 	orgDelete(data) {
diff --git a/snowy-admin-web/src/api/biz/bizPositionApi.js b/snowy-admin-web/src/api/biz/bizPositionApi.js
index a049e554..9f431527 100644
--- a/snowy-admin-web/src/api/biz/bizPositionApi.js
+++ b/snowy-admin-web/src/api/biz/bizPositionApi.js
@@ -28,7 +28,7 @@ export default {
 	},
 	// 提交表单 edit为true时为编辑,默认为新增
 	submitForm(data, edit = false) {
-		return request(edit ? 'add' : 'edit', data)
+		return request(edit ? 'edit' : 'add', data)
 	},
 	// 删除岗位
 	positionDelete(data) {
diff --git a/snowy-admin-web/src/api/biz/bizUserApi.js b/snowy-admin-web/src/api/biz/bizUserApi.js
index f8d57837..493a9f70 100644
--- a/snowy-admin-web/src/api/biz/bizUserApi.js
+++ b/snowy-admin-web/src/api/biz/bizUserApi.js
@@ -24,7 +24,7 @@ export default {
 	},
 	// 提交表单 edit为true时为编辑,默认为新增
 	submitForm(data, edit = false) {
-		return request(edit ? 'add' : 'edit', data)
+		return request(edit ? 'edit' : 'add', data)
 	},
 	// 删除人员
 	userDelete(data) {
diff --git a/snowy-admin-web/src/api/dev/configApi.js b/snowy-admin-web/src/api/dev/configApi.js
index 05cd3635..f0967d6f 100644
--- a/snowy-admin-web/src/api/dev/configApi.js
+++ b/snowy-admin-web/src/api/dev/configApi.js
@@ -28,7 +28,7 @@ export default {
 	},
 	// 提交表单 edit为true时为编辑,默认为新增
 	submitForm(data, edit = false) {
-		return request(edit ? 'add' : 'edit', data)
+		return request(edit ? 'edit' : 'add', data)
 	},
 	// 删除配置
 	configDelete(data) {
diff --git a/snowy-admin-web/src/api/dev/dictApi.js b/snowy-admin-web/src/api/dev/dictApi.js
index e5f98909..da427591 100644
--- a/snowy-admin-web/src/api/dev/dictApi.js
+++ b/snowy-admin-web/src/api/dev/dictApi.js
@@ -32,7 +32,7 @@ export default {
 	},
 	// 提交表单 edit为true时为编辑,默认为新增
 	submitForm(data, edit = false) {
-		return request(edit ? 'add' : 'edit', data)
+		return request(edit ? 'edit' : 'add', data)
 	},
 	// 删除字典
 	dictDelete(data) {
diff --git a/snowy-admin-web/src/api/dev/jobApi.js b/snowy-admin-web/src/api/dev/jobApi.js
index 8e5dca53..1bc49e89 100644
--- a/snowy-admin-web/src/api/dev/jobApi.js
+++ b/snowy-admin-web/src/api/dev/jobApi.js
@@ -28,7 +28,7 @@ export default {
 	},
 	// 提交表单 edit为true时为编辑,默认为新增
 	submitForm(data, edit = false) {
-		return request(edit ? 'add' : 'edit', data)
+		return request(edit ? 'edit' : 'add', data)
 	},
 	// 删除定时任务
 	jobDelete(data) {
diff --git a/snowy-admin-web/src/api/gen/genBasicApi.js b/snowy-admin-web/src/api/gen/genBasicApi.js
index b0a43234..884b4965 100644
--- a/snowy-admin-web/src/api/gen/genBasicApi.js
+++ b/snowy-admin-web/src/api/gen/genBasicApi.js
@@ -9,7 +9,7 @@ export default {
 	},
 	// 提交表单 edit为true时为编辑,默认为新增
 	submitForm(data, edit = false) {
-		return request(edit ? 'add' : 'edit', data)
+		return request(edit ? 'edit' : 'add', data)
 	},
 	// 删除代码生成基础
 	basicDelete(data) {
diff --git a/snowy-admin-web/src/api/gen/genConfigApi.js b/snowy-admin-web/src/api/gen/genConfigApi.js
index 7d881a26..ef54842f 100644
--- a/snowy-admin-web/src/api/gen/genConfigApi.js
+++ b/snowy-admin-web/src/api/gen/genConfigApi.js
@@ -9,7 +9,7 @@ export default {
 	},
 	// 提交表单 edit为true时为编辑,默认为新增
 	submitForm(data, edit = false) {
-		return request(edit ? 'add' : 'edit', data)
+		return request(edit ? 'edit' : 'add', data)
 	},
 	// 删除代码生成详情配置
 	configDelete(data) {
diff --git a/snowy-admin-web/src/api/mobile/resource/buttonApi.js b/snowy-admin-web/src/api/mobile/resource/buttonApi.js
index 05689371..abb7d114 100644
--- a/snowy-admin-web/src/api/mobile/resource/buttonApi.js
+++ b/snowy-admin-web/src/api/mobile/resource/buttonApi.js
@@ -24,7 +24,7 @@ export default {
 	},
 	// 提交表单 edit为true时为编辑,默认为新增
 	mobileButtonSubmitForm(data, edit = false) {
-		return request(edit ? 'add' : 'edit', data)
+		return request(edit ? 'edit' : 'add', data)
 	},
 	// 删除按钮
 	mobileButtonDelete(data) {
diff --git a/snowy-admin-web/src/api/mobile/resource/menuApi.js b/snowy-admin-web/src/api/mobile/resource/menuApi.js
index a735df9b..b7bfaf40 100644
--- a/snowy-admin-web/src/api/mobile/resource/menuApi.js
+++ b/snowy-admin-web/src/api/mobile/resource/menuApi.js
@@ -19,7 +19,7 @@ export default {
 	},
 	// 提交移动端菜单表单 edit为true时为编辑,默认为新增
 	mobileMenuSubmitForm(data, edit = false) {
-		return request(edit ? 'add' : 'edit', data)
+		return request(edit ? 'edit' : 'add', data)
 	},
 	// 更改菜单所属模块
 	mobileMenuChangeModule(data) {
diff --git a/snowy-admin-web/src/api/mobile/resource/moduleApi.js b/snowy-admin-web/src/api/mobile/resource/moduleApi.js
index d024e0d7..f7a5d3d5 100644
--- a/snowy-admin-web/src/api/mobile/resource/moduleApi.js
+++ b/snowy-admin-web/src/api/mobile/resource/moduleApi.js
@@ -24,7 +24,7 @@ export default {
 	},
 	// 提交表单 edit为true时为编辑,默认为新增
 	submitForm(data, edit = false) {
-		return request(edit ? 'add' : 'edit', data)
+		return request(edit ? 'edit' : 'add', data)
 	},
 	// 删除类别
 	moduleDelete(data) {
diff --git a/snowy-admin-web/src/api/sys/orgApi.js b/snowy-admin-web/src/api/sys/orgApi.js
index 89aeb76d..b867a6b2 100644
--- a/snowy-admin-web/src/api/sys/orgApi.js
+++ b/snowy-admin-web/src/api/sys/orgApi.js
@@ -32,7 +32,7 @@ export default {
 	},
 	// 提交表单 edit为true时为编辑,默认为新增
 	submitForm(data, edit = false) {
-		return request(edit ? 'add' : 'edit', data)
+		return request(edit ? 'edit' : 'add', data)
 	},
 	// 删除组织
 	orgDelete(data) {
diff --git a/snowy-admin-web/src/api/sys/positionApi.js b/snowy-admin-web/src/api/sys/positionApi.js
index 119d5717..195653f3 100644
--- a/snowy-admin-web/src/api/sys/positionApi.js
+++ b/snowy-admin-web/src/api/sys/positionApi.js
@@ -28,7 +28,7 @@ export default {
 	},
 	// 提交表单 edit为true时为编辑,默认为新增
 	submitForm(data, edit = false) {
-		return request(edit ? 'add' : 'edit', data)
+		return request(edit ? 'edit' : 'add', data)
 	},
 	// 删除职位
 	positionDelete(data) {
diff --git a/snowy-admin-web/src/api/sys/resource/buttonApi.js b/snowy-admin-web/src/api/sys/resource/buttonApi.js
index e8ef9596..007b356c 100644
--- a/snowy-admin-web/src/api/sys/resource/buttonApi.js
+++ b/snowy-admin-web/src/api/sys/resource/buttonApi.js
@@ -24,7 +24,7 @@ export default {
 	},
 	// 提交表单 edit为true时为编辑,默认为新增
 	submitForm(data, edit = false) {
-		return request(edit ? 'add' : 'edit', data)
+		return request(edit ? 'edit' : 'add', data)
 	},
 	// 删除按钮
 	buttonDelete(data) {
diff --git a/snowy-admin-web/src/api/sys/resource/fieldApi.js b/snowy-admin-web/src/api/sys/resource/fieldApi.js
index 35e03f29..43616002 100644
--- a/snowy-admin-web/src/api/sys/resource/fieldApi.js
+++ b/snowy-admin-web/src/api/sys/resource/fieldApi.js
@@ -28,7 +28,7 @@ export default {
 	},
 	// 提交表单 edit为true时为编辑,默认为新增
 	submitForm(data, edit = false) {
-		return request(edit ? 'add' : 'edit', data)
+		return request(edit ? 'edit' : 'add', data)
 	},
 	// 删除字段
 	fieldDelete(data) {
diff --git a/snowy-admin-web/src/api/sys/resource/menuApi.js b/snowy-admin-web/src/api/sys/resource/menuApi.js
index 64bcc86f..f220c83d 100644
--- a/snowy-admin-web/src/api/sys/resource/menuApi.js
+++ b/snowy-admin-web/src/api/sys/resource/menuApi.js
@@ -24,7 +24,7 @@ export default {
 	},
 	// 提交表单 edit为true时为编辑,默认为新增
 	submitForm(data, edit = false) {
-		return request(edit ? 'add' : 'edit', data)
+		return request(edit ? 'edit' : 'add', data)
 	},
 	// 更改菜单所属模块
 	menuChangeModule(data) {
diff --git a/snowy-admin-web/src/api/sys/resource/moduleApi.js b/snowy-admin-web/src/api/sys/resource/moduleApi.js
index 1aa80118..055db1b4 100644
--- a/snowy-admin-web/src/api/sys/resource/moduleApi.js
+++ b/snowy-admin-web/src/api/sys/resource/moduleApi.js
@@ -24,7 +24,7 @@ export default {
 	},
 	// 提交表单 edit为true时为编辑,默认为新增
 	submitForm(data, edit = false) {
-		return request(edit ? 'add' : 'edit', data)
+		return request(edit ? 'edit' : 'add', data)
 	},
 	// 删除模块
 	moduleDelete(data) {
diff --git a/snowy-admin-web/src/api/sys/resource/spaApi.js b/snowy-admin-web/src/api/sys/resource/spaApi.js
index b8ce1321..9f40cb4d 100644
--- a/snowy-admin-web/src/api/sys/resource/spaApi.js
+++ b/snowy-admin-web/src/api/sys/resource/spaApi.js
@@ -24,7 +24,7 @@ export default {
 	},
 	// 提交表单 edit为true时为编辑,默认为新增
 	submitForm(data, edit = false) {
-		return request(edit ? 'add' : 'edit', data)
+		return request(edit ? 'edit' : 'add', data)
 	},
 	// 删除菜单
 	spaDelete(data) {
diff --git a/snowy-admin-web/src/api/sys/roleApi.js b/snowy-admin-web/src/api/sys/roleApi.js
index 042d0dc5..b50f90f6 100644
--- a/snowy-admin-web/src/api/sys/roleApi.js
+++ b/snowy-admin-web/src/api/sys/roleApi.js
@@ -28,7 +28,7 @@ export default {
 	},
 	// 提交表单 edit为true时为编辑,默认为新增
 	submitForm(data, edit = false) {
-		return request(edit ? 'add' : 'edit', data)
+		return request(edit ? 'edit' : 'add', data)
 	},
 	// 删除角色
 	roleDelete(data) {
diff --git a/snowy-admin-web/src/api/sys/userApi.js b/snowy-admin-web/src/api/sys/userApi.js
index 4e2a4a11..f685828d 100644
--- a/snowy-admin-web/src/api/sys/userApi.js
+++ b/snowy-admin-web/src/api/sys/userApi.js
@@ -24,7 +24,7 @@ export default {
 	},
 	// 提交表单 edit为true时为编辑,默认为新增
 	submitForm(data, edit = false) {
-		return request(edit ? 'add' : 'edit', data)
+		return request(edit ? 'edit' : 'add', data)
 	},
 	// 删除用户
 	userDelete(data) {
diff --git a/snowy-admin-web/src/views/biz/org/form.vue b/snowy-admin-web/src/views/biz/org/form.vue
index ded566f1..e4899042 100644
--- a/snowy-admin-web/src/views/biz/org/form.vue
+++ b/snowy-admin-web/src/views/biz/org/form.vue
@@ -153,7 +153,7 @@
 				submitLoading.value = true
 				formData.value.extJson = JSON.stringify(extJson.value)
 				bizOrgApi
-					.submitForm(formData.value, !formData.value.id)
+					.submitForm(formData.value, formData.value.id)
 					.then(() => {
 						visible = false
 						emit('successful')
diff --git a/snowy-admin-web/src/views/biz/position/form.vue b/snowy-admin-web/src/views/biz/position/form.vue
index 67164cdf..af103f2f 100644
--- a/snowy-admin-web/src/views/biz/position/form.vue
+++ b/snowy-admin-web/src/views/biz/position/form.vue
@@ -108,7 +108,7 @@
 			.then(() => {
 				submitLoading.value = true
 				bizPositionApi
-					.submitForm(formData.value, !formData.value.id)
+					.submitForm(formData.value, formData.value.id)
 					.then(() => {
 						visible = false
 						emit('successful')
diff --git a/snowy-admin-web/src/views/dev/config/otherConfig/form.vue b/snowy-admin-web/src/views/dev/config/otherConfig/form.vue
index 79485d1f..f152db28 100644
--- a/snowy-admin-web/src/views/dev/config/otherConfig/form.vue
+++ b/snowy-admin-web/src/views/dev/config/otherConfig/form.vue
@@ -69,7 +69,7 @@
 		formRef.value.validate().then(() => {
 			submitLoading.value = true
 			configApi
-				.submitForm(formData.value, !formData.value.id)
+				.submitForm(formData.value, formData.value.id)
 				.then(() => {
 					onClose()
 					emit('successful')
diff --git a/snowy-admin-web/src/views/dev/dict/category/form.vue b/snowy-admin-web/src/views/dev/dict/category/form.vue
index b0579ab5..76108b88 100644
--- a/snowy-admin-web/src/views/dev/dict/category/form.vue
+++ b/snowy-admin-web/src/views/dev/dict/category/form.vue
@@ -111,7 +111,7 @@
 	// 验证并提交数据
 	const onSubmit = () => {
 		formRef.value.validate().then(() => {
-			dictApi.submitForm(formData.value, !formData.value.id).then(() => {
+			dictApi.submitForm(formData.value, formData.value.id).then(() => {
 				visible = false
 				emit('successful')
 			})
diff --git a/snowy-admin-web/src/views/dev/job/form.vue b/snowy-admin-web/src/views/dev/job/form.vue
index c3052c53..01d67194 100644
--- a/snowy-admin-web/src/views/dev/job/form.vue
+++ b/snowy-admin-web/src/views/dev/job/form.vue
@@ -84,7 +84,7 @@
 		formRef.value.validate().then(() => {
 			submitLoading.value = true
 			jobApi
-				.submitForm(formData.value, !formData.value.id)
+				.submitForm(formData.value, formData.value.id)
 				.then(() => {
 					onClose()
 					emit('successful')
diff --git a/snowy-admin-web/src/views/gen/basic.vue b/snowy-admin-web/src/views/gen/basic.vue
index ab4ab734..54ee3f98 100644
--- a/snowy-admin-web/src/views/gen/basic.vue
+++ b/snowy-admin-web/src/views/gen/basic.vue
@@ -397,7 +397,7 @@
 				.then(() => {
 					submitLoading.value = true
 					genBasicApi
-						.submitForm(formData.value, !formData.value.id)
+						.submitForm(formData.value, formData.value.id)
 						.then((data) => {
 							resolve(data)
 						})
diff --git a/snowy-admin-web/src/views/mobile/resource/button/form.vue b/snowy-admin-web/src/views/mobile/resource/button/form.vue
index badea218..0fba964c 100644
--- a/snowy-admin-web/src/views/mobile/resource/button/form.vue
+++ b/snowy-admin-web/src/views/mobile/resource/button/form.vue
@@ -61,7 +61,7 @@
 				parentId: recordData.value.id
 			}
 			const param = Object.assign(defParam, formData.value)
-			buttonApi.mobileButtonSubmitForm(param, !formData.value.id).then(() => {
+			buttonApi.mobileButtonSubmitForm(param, formData.value.id).then(() => {
 				onClose()
 				emit('successful')
 			})
diff --git a/snowy-admin-web/src/views/mobile/resource/module/form.vue b/snowy-admin-web/src/views/mobile/resource/module/form.vue
index 29248527..fbe896b1 100644
--- a/snowy-admin-web/src/views/mobile/resource/module/form.vue
+++ b/snowy-admin-web/src/views/mobile/resource/module/form.vue
@@ -73,7 +73,7 @@
 	// 验证并提交数据
 	const onSubmit = () => {
 		formRef.value.validate().then(() => {
-			moduleApi.submitForm(formData.value, !formData.value.id).then(() => {
+			moduleApi.submitForm(formData.value, formData.value.id).then(() => {
 				onClose()
 				emit('successful')
 			})
diff --git a/snowy-admin-web/src/views/sys/org/form.vue b/snowy-admin-web/src/views/sys/org/form.vue
index 9819f63b..3af07942 100644
--- a/snowy-admin-web/src/views/sys/org/form.vue
+++ b/snowy-admin-web/src/views/sys/org/form.vue
@@ -151,7 +151,7 @@
 			submitLoading.value = true
 			formData.value.extJson = JSON.stringify(extJson.value)
 			orgApi
-				.submitForm(formData.value, !formData.value.id)
+				.submitForm(formData.value, formData.value.id)
 				.then(() => {
 					visible = false
 					emit('successful')
diff --git a/snowy-admin-web/src/views/sys/position/form.vue b/snowy-admin-web/src/views/sys/position/form.vue
index 37abaaf1..e7af008c 100644
--- a/snowy-admin-web/src/views/sys/position/form.vue
+++ b/snowy-admin-web/src/views/sys/position/form.vue
@@ -104,7 +104,7 @@
 	const onSubmit = () => {
 		formRef.value.validate().then(() => {
 			submitLoading.value = true
-			positionApi.submitForm(formData.value, !formData.value.id).then(() => {
+			positionApi.submitForm(formData.value, formData.value.id).then(() => {
 				visible = false
 				submitLoading.value = false
 				emit('successful')
diff --git a/snowy-admin-web/src/views/sys/resource/button/form.vue b/snowy-admin-web/src/views/sys/resource/button/form.vue
index 19e3b82d..b5b5ae81 100644
--- a/snowy-admin-web/src/views/sys/resource/button/form.vue
+++ b/snowy-admin-web/src/views/sys/resource/button/form.vue
@@ -64,7 +64,7 @@
 				parentId: recordData.value.id
 			}
 			const param = Object.assign(defParam, formData.value)
-			buttonApi.submitForm(param, !formData.value.id).then((res) => {
+			buttonApi.submitForm(param, formData.value.id).then((res) => {
 				onClose()
 				emit('successful')
 			})
diff --git a/snowy-admin-web/src/views/sys/resource/field/form.vue b/snowy-admin-web/src/views/sys/resource/field/form.vue
index 3ae9b60c..2cb8243e 100644
--- a/snowy-admin-web/src/views/sys/resource/field/form.vue
+++ b/snowy-admin-web/src/views/sys/resource/field/form.vue
@@ -69,7 +69,7 @@
 				parentId: recordData.value.id
 			}
 			const param = Object.assign(defParam, formData.value)
-			fieldApi.submitForm(param, !formData.value.id).then((res) => {
+			fieldApi.submitForm(param, formData.value.id).then((res) => {
 				onClose()
 				emit('successful')
 			})
diff --git a/snowy-admin-web/src/views/sys/resource/module/form.vue b/snowy-admin-web/src/views/sys/resource/module/form.vue
index 8e22a1b7..014bcdd0 100644
--- a/snowy-admin-web/src/views/sys/resource/module/form.vue
+++ b/snowy-admin-web/src/views/sys/resource/module/form.vue
@@ -73,7 +73,7 @@
 	// 验证并提交数据
 	const onSubmit = () => {
 		formRef.value.validate().then(() => {
-			moduleApi.submitForm(formData.value, !formData.value.id).then(() => {
+			moduleApi.submitForm(formData.value, formData.value.id).then(() => {
 				onClose()
 				emit('successful')
 			})
diff --git a/snowy-admin-web/src/views/sys/role/form.vue b/snowy-admin-web/src/views/sys/role/form.vue
index 288ee24a..dfdfd8d9 100644
--- a/snowy-admin-web/src/views/sys/role/form.vue
+++ b/snowy-admin-web/src/views/sys/role/form.vue
@@ -104,7 +104,7 @@
 		formRef.value.validate().then(() => {
 			submitLoading.value = true
 			roleApi
-				.submitForm(formData.value, !formData.value.id)
+				.submitForm(formData.value, formData.value.id)
 				.then(() => {
 					visible = false
 					emit('successful')