xukang před 3 měsíci
rodič
revize
fa2fa3db49

+ 1 - 1
TFPower-app/src/app/tab2/rili/rili.component.ts

@@ -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 字段

+ 1 - 1
TFPower-app/src/app/tab2/tab2.page.html

@@ -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>
 

+ 1 - 1
TFPower-app/src/app/tab2/tianqi/tianqi.component.ts

@@ -21,7 +21,7 @@ export class TianqiComponent implements OnInit {
   ];
   async fetchWeatherData() {
     // 第一个请求,获取 adcode
-    const apiUrl = '/api/api/weather/city/101240101';
+    const apiUrl = '/api/weather/city/101240101';
     try {
       const response: any = await this.http.get(apiUrl).toPromise(); // 使用 toPromise()
       const adcode = response; // 获取 adcode 字段

+ 2 - 2
TFPower-app/src/proxy.config.json

@@ -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"
         }
     }
 }