update 0.13.3
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: yehuozhili
|
||||
* @Date: 2021-03-14 05:40:37
|
||||
* @LastEditors: yehuozhili
|
||||
* @LastEditTime: 2022-04-01 14:29:39
|
||||
* @LastEditTime: 2022-04-06 22:07:33
|
||||
* @FilePath: \dooringx\packages\dooringx-lib\src\components\preview.tsx
|
||||
*/
|
||||
import Container from './container';
|
||||
@@ -64,6 +64,10 @@ function Preview(props: PreviewProps): ReactElement {
|
||||
// 设置全局
|
||||
const global = props.config.getStore().getData().globalState;
|
||||
const bodyColor = global?.bodyColor;
|
||||
const title = global?.title;
|
||||
if (title) {
|
||||
document.title = title;
|
||||
}
|
||||
if (bodyColor) {
|
||||
document.body.style.backgroundColor = bodyColor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user