@@ -239,13 +239,13 @@ func addAutoMoveFile(data *tplData) {
239
239
global .GVA_CONFIG .AutoCode .Web , global .GVA_CONFIG .AutoCode .WApi , base )
240
240
} else if strings .Contains (fileSlice [n - 2 ], "workflowForm" ) {
241
241
data .autoMoveFilePath = filepath .Join (global .GVA_CONFIG .AutoCode .Root ,
242
- global .GVA_CONFIG .AutoCode .Web , global .GVA_CONFIG .AutoCode .WFlow , strings .TrimSuffix (base , filepath .Ext (base ))+ "WorkflowForm.vue" )
242
+ global .GVA_CONFIG .AutoCode .Web , global .GVA_CONFIG .AutoCode .WFlow , filepath . Base ( filepath . Dir ( filepath . Dir ( data . autoCodePath ))), strings .TrimSuffix (base , filepath .Ext (base ))+ "WorkflowForm.vue" )
243
243
} else if strings .Contains (fileSlice [n - 2 ], "form" ) {
244
244
data .autoMoveFilePath = filepath .Join (global .GVA_CONFIG .AutoCode .Root ,
245
- global .GVA_CONFIG .AutoCode .Web , global .GVA_CONFIG .AutoCode .WForm , strings .TrimSuffix (base , filepath .Ext (base ))+ "Form.vue" )
245
+ global .GVA_CONFIG .AutoCode .Web , global .GVA_CONFIG .AutoCode .WForm , filepath . Base ( filepath . Dir ( filepath . Dir ( data . autoCodePath ))), strings .TrimSuffix (base , filepath .Ext (base ))+ "Form.vue" )
246
246
} else if strings .Contains (fileSlice [n - 2 ], "table" ) {
247
247
data .autoMoveFilePath = filepath .Join (global .GVA_CONFIG .AutoCode .Root ,
248
- global .GVA_CONFIG .AutoCode .Web , global .GVA_CONFIG .AutoCode .WTable , base )
248
+ global .GVA_CONFIG .AutoCode .Web , global .GVA_CONFIG .AutoCode .WTable , filepath . Base ( filepath . Dir ( filepath . Dir ( data . autoCodePath ))), base )
249
249
}
250
250
}
251
251
}
0 commit comments