wenhongquan 3 years ago
parent
commit
cbaa6a7eb8
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/utils/index.ts

+ 1 - 2
src/utils/index.ts

@@ -66,6 +66,5 @@ export const sleep = (delay: number) =>
     setTimeout(() => resolve(''), delay);
   });
 
-export const BaseMediaUrl =
-  'http://61.147.254.211:30876/YJZH-SQ/api/common/download/resource?resource=';
+export const BaseMediaUrl = ` ${(import.meta.env.VITE_API_SERVER as string)}/YJZH-SQ/api/common/download/resource?resource=`;
   // 'http://sqpcbg.xt.wenhq.top:8083/api/common/download/resource?resource=';