12345678910111213141516171819202122232425262728293031 |
- import { bootstrapApplication } from '@angular/platform-browser';
- import { RouteReuseStrategy, provideRouter, withPreloading, PreloadAllModules } from '@angular/router';
- import { IonicRouteStrategy, provideIonicAngular } from '@ionic/angular/standalone';
- import { routes } from './app/app.routes';
- import { AppComponent } from './app/app.component';
- // 引用HttpClient方法
- import { provideHttpClient } from '@angular/common/http';
- // 引用移动端授权检测供应器
- import { Diagnostic } from '@awesome-cordova-plugins/diagnostic/ngx';
- // 设置Parse服务属性
- import Parse from "parse";
- Parse.initialize("ncloudmaster");
- Parse.serverURL = "https://server.fmode.cn/parse";
- localStorage.setItem("NOVA_APIG_SERVER", 'aHR0cHMlM0ElMkYlMkZzZXJ2ZXIuZm1vZGUuY24lMkZhcGklMkZhcGlnJTJG')
- // 注意:替换Token 根据Token设置Parse服务帐套权限
- Parse.User.become('r:21b53aad9b769d6e0e1a1e23db0e0a7b')
- bootstrapApplication(AppComponent, {
- providers: [
- { provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
- provideIonicAngular(),
- provideRouter(routes, withPreloading(PreloadAllModules)),
- // 添加HttpClient供应器
- provideHttpClient(),
- // 添加Diagnostic
- Diagnostic,
- ],
- });
|