mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-06 08:59:10 +08:00
45 lines
1.6 KiB
TypeScript
45 lines
1.6 KiB
TypeScript
/*
|
|
* Copyright [2022] [MaxKey of copyright http://www.maxkey.top]
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
// This file can be replaced during build by using the `fileReplacements` array.
|
|
// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
|
|
// The list of file replacements can be found in `angular.json`.
|
|
|
|
import { DelonMockModule } from '@delon/mock';
|
|
import { Environment } from '@delon/theme';
|
|
|
|
import * as MOCKDATA from '../../_mock';
|
|
|
|
export const environment = {
|
|
production: false,
|
|
useHash: true,
|
|
api: {
|
|
baseUrl: 'http://mgt.maxkey.top/maxkey-mgt-api',
|
|
//baseUrl: 'http://localhost:9526/maxkey-mgt-api',
|
|
refreshTokenEnabled: true,
|
|
refreshTokenType: 're-request'
|
|
},
|
|
modules: [DelonMockModule.forRoot({ data: MOCKDATA })]
|
|
} as Environment;
|
|
|
|
/*
|
|
* In development mode, to ignore zone related error stack frames such as
|
|
* `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can
|
|
* import the following file, but please comment it out in production mode
|
|
* because it will have performance impact when throw error
|
|
*/
|
|
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
|