From 9070556c7c3c3e1fd7e57105875389a1e6b24a01 Mon Sep 17 00:00:00 2001 From: Sjh <55341701@qq.com> Date: Tue, 10 Sep 2024 17:07:31 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=E6=89=93=E5=8C=85=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- angular.json | 1 + proxy.config.json | 2 +- src/app/pages/singlelogin/singlelogin.component.ts | 4 ++-- src/app/service/pattern.service.ts | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/angular.json b/angular.json index 887f67c..aacb0f1 100644 --- a/angular.json +++ b/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", diff --git a/proxy.config.json b/proxy.config.json index 5b581c4..1ab96ca 100644 --- a/proxy.config.json +++ b/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/", diff --git a/src/app/pages/singlelogin/singlelogin.component.ts b/src/app/pages/singlelogin/singlelogin.component.ts index dd2c77f..bd41167 100644 --- a/src/app/pages/singlelogin/singlelogin.component.ts +++ b/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(); } ); diff --git a/src/app/service/pattern.service.ts b/src/app/service/pattern.service.ts index 3572f1b..32bde12 100644 --- a/src/app/service/pattern.service.ts +++ b/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; //是否是生产环境 }