We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dea9e8c commit f693484Copy full SHA for f693484
docs/api/frontend-api/preview-api.md
@@ -13,14 +13,16 @@
13
14
适用场景:仅修改跳转 url,不修改 query 查询字符串部分,比如:
15
16
-```javascript
+<pre>
17
+<code>
18
import { Preview } from '@opentiny/tiny-engine'
19
export default {
20
toolbars: [
- [Preview, { options: { ...Preview.options, previewUrl: import.meta.env.MODE.includes('prod') ? 'http://tiny-engine-preview.com/customPreview' : '' } }]
21
+ [Preview, { options: { ...Preview.options, previewUrl: import.meta<wbr>.env.MODE.includes('prod') ? 'http://tiny-engine-preview.com/customPreview' : '' } }]
22
]
23
}
-```
24
+</code>
25
+</pre>
26
27
配置完成之后,在生产环境,TinyEngine 会增加必要的 query部分,然后跳转到配置的 url,比如:`http://tiny-engine-preview.com/customPreview?tenant=1&id=1&...`。
28
0 commit comments