Browse Source

[新增]打包配置

test-assets
邵佳豪 3 months ago
parent
commit
9070556c7c
  1. 1
      angular.json
  2. 2
      proxy.config.json
  3. 4
      src/app/pages/singlelogin/singlelogin.component.ts
  4. 4
      src/app/service/pattern.service.ts

1
angular.json

@ -18,6 +18,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"baseHref": "/youzhan/",
"outputPath": "dist/anxin119",
"index": "src/index.html",
"main": "src/main.ts",

2
proxy.config.json

@ -1,6 +1,6 @@
{
"/api": {
"target": "http://10.156.134.54:8906/",
"target": "http://121.36.37.70:8906/",
"测试1": "http://121.36.37.70:8906/",
"测试2": "https://znaq.sinochemoilmarketing.com/",
"测试3": "https://gas.anxincloud.cn/",

4
src/app/pages/singlelogin/singlelogin.component.ts

@ -93,7 +93,7 @@ export class SingleloginComponent implements OnInit {
resolve();
},
(err) => {
alert("token无效");
alert("请求中台接口失败");
reject();
}
);
@ -121,7 +121,7 @@ export class SingleloginComponent implements OnInit {
resolve();
},
(err) => {
alert("token无效");
alert("请求中台接口失败");
reject();
}
);

4
src/app/service/pattern.service.ts

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

Loading…
Cancel
Save