environment.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright [2022] [MaxKey of copyright http://www.maxkey.top]
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. // This file can be replaced during build by using the `fileReplacements` array.
  17. // `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
  18. // The list of file replacements can be found in `angular.json`.
  19. import { DelonMockModule } from '@delon/mock';
  20. import { Environment } from '@delon/theme';
  21. import * as MOCKDATA from '../../_mock';
  22. export const environment = {
  23. production: false,
  24. useHash: true,
  25. api: {
  26. baseUrl: 'http://mgt.maxkey.top/maxkey-mgt-api',
  27. //baseUrl: 'http://localhost:9526/maxkey-mgt-api',
  28. refreshTokenEnabled: true,
  29. refreshTokenType: 're-request'
  30. },
  31. modules: [DelonMockModule.forRoot({ data: MOCKDATA })]
  32. } as Environment;
  33. /*
  34. * In development mode, to ignore zone related error stack frames such as
  35. * `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can
  36. * import the following file, but please comment it out in production mode
  37. * because it will have performance impact when throw error
  38. */
  39. // import 'zone.js/plugins/zone-error'; // Included with Angular CLI.