mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
fix(demo): _FRAGMENT
This commit is contained in:
@@ -69,6 +69,15 @@ if (FLAG_DEMO) {
|
||||
if (method === 'POST') {
|
||||
return Promise.resolve({ status: 'ok', message: 'success' })
|
||||
} else if (method === 'GET') {
|
||||
if ((url.searchParams.get('path') || '').includes('_FRAGMENT.md')) {
|
||||
const content = "---\ncustomVarFromOtherDoc: Hello, It's Me.\n---\n*Content from a fragment.*"
|
||||
return Promise.resolve({
|
||||
status: 'ok',
|
||||
message: 'success',
|
||||
data: { content, hash: 'test' }
|
||||
})
|
||||
}
|
||||
|
||||
if ((url.searchParams.get('path') || '').endsWith('.luckysheet')) {
|
||||
const content = JSON.stringify([{
|
||||
name: 'Sheet1',
|
||||
|
||||
Reference in New Issue
Block a user