From 1cf61a65541429b254996a3fcf2e04e4b4e0082b Mon Sep 17 00:00:00 2001 From: songzhibin97 <718428482@qq.com> Date: Wed, 10 Mar 2021 12:00:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8A=A8=E6=80=81=E8=BF=81?= =?UTF-8?q?=E7=A7=BB=E7=9A=84=E4=B8=80=E4=B8=AA=E5=B0=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/config.yaml | 6 +++--- server/service/sys_auto_code.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/server/config.yaml b/server/config.yaml index 94576752..658bce95 100644 --- a/server/config.yaml +++ b/server/config.yaml @@ -75,9 +75,9 @@ autoCode: web: '/web/src' web-api: '/api' - web-form: '/view/file1' - web-table: '/view/file1' - web-flow: '/view/file1' + web-form: '/view' + web-table: '/view' + web-flow: '/view' # local configuration local: diff --git a/server/service/sys_auto_code.go b/server/service/sys_auto_code.go index f34e8064..caf5b434 100644 --- a/server/service/sys_auto_code.go +++ b/server/service/sys_auto_code.go @@ -239,13 +239,13 @@ func addAutoMoveFile(data *tplData) { global.GVA_CONFIG.AutoCode.Web, global.GVA_CONFIG.AutoCode.WApi, base) } else if strings.Contains(fileSlice[n-2], "workflowForm") { data.autoMoveFilePath = filepath.Join(global.GVA_CONFIG.AutoCode.Root, - global.GVA_CONFIG.AutoCode.Web, global.GVA_CONFIG.AutoCode.WFlow, strings.TrimSuffix(base, filepath.Ext(base))+"WorkflowForm.vue") + 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") } else if strings.Contains(fileSlice[n-2], "form") { data.autoMoveFilePath = filepath.Join(global.GVA_CONFIG.AutoCode.Root, - global.GVA_CONFIG.AutoCode.Web, global.GVA_CONFIG.AutoCode.WForm, strings.TrimSuffix(base, filepath.Ext(base))+"Form.vue") + 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") } else if strings.Contains(fileSlice[n-2], "table") { data.autoMoveFilePath = filepath.Join(global.GVA_CONFIG.AutoCode.Root, - global.GVA_CONFIG.AutoCode.Web, global.GVA_CONFIG.AutoCode.WTable, base) + global.GVA_CONFIG.AutoCode.Web, global.GVA_CONFIG.AutoCode.WTable, filepath.Base(filepath.Dir(filepath.Dir(data.autoCodePath))), base) } } } -- GitLab