@@ -63,26 +63,34 @@ const GlobalLayout = () => {
6363
6464 // 等待状态页面
6565 if ( serviceStatus === ServiceStatus . PENDING || curUser === null ) {
66- return < Spin className = { styles . loadingBox } size = "large" /> ;
66+ return (
67+ < div className = { styles . app } >
68+ < AppTitleBar className = { styles . appTitleBar } />
69+ < Spin className = { styles . loadingBox } size = "large" /> ;
70+ </ div >
71+ ) ;
6772 }
6873
6974 // 错误状态页面
7075 if ( serviceStatus === ServiceStatus . FAILURE ) {
7176 return (
72- < div className = { styles . loadingBox } >
73- < Button type = "primary" onClick = { restartPolling } style = { { marginBottom : 20 } } >
74- < SyncOutlined />
75- { i18n ( 'common.text.tryToRestart' ) }
76- </ Button >
77- < div className = { styles . contact } >
78- { i18n ( 'common.text.contactUs' ) } :
79- < GithubOutlined className = { styles . icon } onClick = { ( ) => window . open ( 'https://github.com/chat2db/Chat2DB' ) } />
80- < Tooltip
81- placement = "bottom"
82- title = { < img style = { { width : 200 , height : 200 } } src = "https://sqlgpt.cn/_static/img/chat2db_wechat.png" /> }
83- >
84- < WechatOutlined className = { styles . icon } />
85- </ Tooltip >
77+ < div className = { styles . app } >
78+ < AppTitleBar className = { styles . appTitleBar } />
79+ < div className = { styles . loadingBox } >
80+ < Button type = "primary" onClick = { restartPolling } style = { { marginBottom : 20 } } >
81+ < SyncOutlined />
82+ { i18n ( 'common.text.tryToRestart' ) }
83+ </ Button >
84+ < div className = { styles . contact } >
85+ { i18n ( 'common.text.contactUs' ) } :
86+ < GithubOutlined className = { styles . icon } onClick = { ( ) => window . open ( 'https://github.com/chat2db/Chat2DB' ) } />
87+ < Tooltip
88+ placement = "bottom"
89+ title = { < img style = { { width : 200 , height : 200 } } src = "https://sqlgpt.cn/_static/img/chat2db_wechat.png" /> }
90+ >
91+ < WechatOutlined className = { styles . icon } />
92+ </ Tooltip >
93+ </ div >
8694 </ div >
8795 </ div >
8896 ) ;
0 commit comments