18779989085/xk
18779989085/master
@@ -53,7 +53,7 @@ export class RiliComponent implements OnInit {
];
fetchWeatherData() {
// 第一个请求,获取 adcode
- const apiUrl = '/api/api/weather/city/101240101';
+ const apiUrl = '/api/weather/city/101240101';
this.http.get(apiUrl)
.subscribe((response: any) => {
const adcode = response; // 获取 adcode 字段
@@ -104,7 +104,7 @@
<!-- 未登录 -->
<div *ngIf="!currentUser?.id" class="button-group">
- <ion-label class="link" (click)="signup()">注册</ion-label>
+ <ion-label class="link" (click)="signup()">注册一下</ion-label>
<ion-label class="link" (click)="login()">登录</ion-label>
</div>
@@ -21,7 +21,7 @@ export class TianqiComponent implements OnInit {
async fetchWeatherData() {
try {
const response: any = await this.http.get(apiUrl).toPromise(); // 使用 toPromise()
@@ -1,11 +1,11 @@
{
"/api": {
- "target": "http://t.weather.sojson.com/",
+ "target": "https://dev.fmode.cn",
"secure": false,
"logLevel": "debug",
"changeOrigin": true,
"pathRewrite": {
- "^/api": ""
+ "^/api": "/api"
}