From 35cd3f7202ce1cf81bf7d5708312ad3976c8d9ca Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 19 Dec 2023 01:32:25 +0800 Subject: [PATCH] [_] --- sui/core/editor.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sui/core/editor.go b/sui/core/editor.go index 8ba1370fa9..94fde331ac 100644 --- a/sui/core/editor.go +++ b/sui/core/editor.go @@ -34,16 +34,17 @@ func (page *Page) EditorRender() (*ResponseEditorRender, error) { // Render the page request := NewRequestMock(page.Config.Mock) - link := page.Link(request) - if request.URL.Path == "" { - request.URL.Path = link - } // Set Default Sid if request.Sid == "" { request.Sid, _ = page.Sid() } + link := page.Link(request) + if request.URL.Path == "" { + request.URL.Path = link + } + // Render tools // res.Scripts = append(res.Scripts, filepath.Join("@assets", "__render.js")) // res.Styles = append(res.Styles, filepath.Join("@assets", "__render.css"))