Skip to content

Commit 829fa4d

Browse files
committed
re
1 parent 5529d5f commit 829fa4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/service/sys_auto_code.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ func addAutoMoveFile(data *tplData) {
200200
if strings.Contains(data.autoCodePath, "js") {
201201
data.autoMoveFilePath = filepath.Join("../", "web", "src", dir, base)
202202
} else if strings.Contains(data.autoCodePath, "form") {
203-
data.autoMoveFilePath = filepath.Join("../", "web", "src", "view", filepath.Dir(dir), strings.TrimSuffix(base, filepath.Ext(base))+"From.vue")
203+
data.autoMoveFilePath = filepath.Join("../", "web", "src", "view", filepath.Base(filepath.Dir(filepath.Dir(data.autoCodePath))), strings.TrimSuffix(base, filepath.Ext(base))+"From.vue")
204204
} else if strings.Contains(data.autoCodePath, "table") {
205-
data.autoMoveFilePath = filepath.Join("../", "web", "src", "view", filepath.Dir(dir), base)
205+
data.autoMoveFilePath = filepath.Join("../", "web", "src", "view", filepath.Base(filepath.Dir(filepath.Dir(data.autoCodePath))), base)
206206
}
207207
}
208208
}

0 commit comments

Comments
 (0)