v4.5.1-2 (#421)
This commit is contained in:
@@ -45,8 +45,16 @@ function App({ Component, pageProps }: AppProps) {
|
||||
// get init data
|
||||
(async () => {
|
||||
const {
|
||||
feConfigs: { scripts }
|
||||
feConfigs: { scripts, isPlus }
|
||||
} = await clientInitData();
|
||||
|
||||
// log fastgpt
|
||||
!isPlus &&
|
||||
console.log(
|
||||
'%cWelcome to FastGPT',
|
||||
'font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;',
|
||||
`GitHub:https://github.com/labring/FastGPT`
|
||||
);
|
||||
setScripts(scripts || []);
|
||||
})();
|
||||
// add window error track
|
||||
@@ -61,12 +69,7 @@ function App({ Component, pageProps }: AppProps) {
|
||||
url
|
||||
});
|
||||
};
|
||||
// log fastgpt
|
||||
console.log(
|
||||
'%cWelcome to FastGPT',
|
||||
'font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;',
|
||||
`GitHub:https://github.com/labring/FastGPT`
|
||||
);
|
||||
|
||||
return () => {
|
||||
window.onerror = null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user