Skip to content

Commit 5529d5f

Browse files
committed
change2
1 parent 08e9c6b commit 5529d5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/service/sys_auto_code.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func GetColumn(tableName string, dbName string) (err error, Columns []request.Co
182182
//}
183183

184184
func addAutoMoveFile(data *tplData) {
185-
dir := filepath.Dir(data.autoCodePath)
185+
dir := filepath.Base(filepath.Dir(data.autoCodePath))
186186
base := filepath.Base(data.autoCodePath)
187187
if strings.Contains(data.autoCodePath, "server") {
188188
if strings.Contains(data.autoCodePath, "router") {

0 commit comments

Comments
 (0)