Merge pull request #534 from trheyi/main

[_]
This commit is contained in:
Max 2023-12-19 01:33:01 +08:00 committed by GitHub
commit 625cd2bad5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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