1234567891011121314151617 |
- import { config } from "../config/config";
- export class tools {
- public static platform:string = config.Platform.H5
- public static initPlatform(){
- // #ifdef MP-WEIXIN
- tools.platform = config.Platform.WEIXIN
- // #endif
-
- // #ifdef MP-TOUTIAO
- tools.platform = config.Platform.WEIXIN
- // #endif
- }
- public static getCurPlatform(){
- return tools.platform
- }
- }
|