wfansh 3 months ago
parent
commit
bca6a149c8
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/hooks/setting/index.ts

+ 1 - 2
src/hooks/setting/index.ts

@@ -27,8 +27,7 @@ export const useGlobSetting = (): Readonly<GlobConfig> => {
   let title = VITE_GLOB_APP_TITLE;
 
   // TODO:: 待域名申请好之后修改配置
-  const domain = window.location.hostname;
-  if (domain.includes('sohoeb2b')) {
+  if (window.location.hostname.includes('sohoeb2b')) {
     shortTitle = '苏豪通';
     title = '苏豪通'; // Use the imported image for this domain
   } else {