mirror of
https://gitee.com/gz-yami/mall4j.git
synced 2026-03-22 09:17:16 +08:00
分组管理代码优化
This commit is contained in:
@@ -92,7 +92,7 @@ const dataForm = ref({
|
|||||||
status: 1,
|
status: 1,
|
||||||
isDefault: null,
|
isDefault: null,
|
||||||
prodCount: null,
|
prodCount: null,
|
||||||
seq: null,
|
seq: 0,
|
||||||
style: 0
|
style: 0
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -120,6 +120,9 @@ const dataFormRef = ref(null)
|
|||||||
* 表单提交
|
* 表单提交
|
||||||
*/
|
*/
|
||||||
const onSubmit = Debounce(() => {
|
const onSubmit = Debounce(() => {
|
||||||
|
if (!dataForm.value.seq) {
|
||||||
|
dataForm.value.seq = 0
|
||||||
|
}
|
||||||
dataFormRef.value?.validate((valid) => {
|
dataFormRef.value?.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
http({
|
http({
|
||||||
|
|||||||
Reference in New Issue
Block a user