import { Injectable } from "@angular/core"; @Injectable({ providedIn: "root", }) export class PatternService { static isProd: any = false; constructor() {} public isProd: boolean = false; //是否是生产环境 }