wfansh 3 月之前
父节点
当前提交
bca6a149c8
共有 1 个文件被更改,包括 1 次插入2 次删除
  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 {