songzhibin97 4 年之前
父节点
当前提交
e43561e0f9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server/service/sys_auto_code.go

+ 1 - 1
server/service/sys_auto_code.go

@@ -182,7 +182,7 @@ func GetColumn(tableName string, dbName string) (err error, Columns []request.Co
 //}
 
 func addAutoMoveFile(data *tplData) {
-	dir := filepath.Dir(data.autoCodePath)
+	dir := filepath.Base(filepath.Dir(data.autoCodePath))
 	base := filepath.Base(data.autoCodePath)
 	if strings.Contains(data.autoCodePath, "server") {
 		if strings.Contains(data.autoCodePath, "router") {