This commit is contained in:
Max 2023-12-19 01:32:25 +08:00
parent d9e9e239d4
commit 35cd3f7202

View file

@ -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"))