From 829fa4dac565a6a8bd7dfde468c52e8933ca1bc3 Mon Sep 17 00:00:00 2001 From: songzhibin97 <718428482@qq.com> Date: Sun, 8 Nov 2020 11:08:02 +0800 Subject: [PATCH] re --- server/service/sys_auto_code.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/service/sys_auto_code.go b/server/service/sys_auto_code.go index a27dde73..949913b9 100644 --- a/server/service/sys_auto_code.go +++ b/server/service/sys_auto_code.go @@ -200,9 +200,9 @@ func addAutoMoveFile(data *tplData) { if strings.Contains(data.autoCodePath, "js") { data.autoMoveFilePath = filepath.Join("../", "web", "src", dir, base) } else if strings.Contains(data.autoCodePath, "form") { - data.autoMoveFilePath = filepath.Join("../", "web", "src", "view", filepath.Dir(dir), strings.TrimSuffix(base, filepath.Ext(base))+"From.vue") + data.autoMoveFilePath = filepath.Join("../", "web", "src", "view", filepath.Base(filepath.Dir(filepath.Dir(data.autoCodePath))), strings.TrimSuffix(base, filepath.Ext(base))+"From.vue") } else if strings.Contains(data.autoCodePath, "table") { - data.autoMoveFilePath = filepath.Join("../", "web", "src", "view", filepath.Dir(dir), base) + data.autoMoveFilePath = filepath.Join("../", "web", "src", "view", filepath.Base(filepath.Dir(filepath.Dir(data.autoCodePath))), base) } } }