Browse Source

feat:websever

0210225 4 months ago
parent
commit
5ea41fdca3

+ 1 - 1
src/app/app.component.ts

@@ -1,7 +1,7 @@
 import { Component } from '@angular/core';
 import * as Parse from "parse";
 Parse.initialize("dev");
-(Parse as any).serverURL = 'http://web2023.fmode.cn:9999/parse'
+(Parse as any).serverURL = 'https://web2023.fmode.cn/parse'
 // import function to register Swiper custom elements
 import { register } from 'swiper/element/bundle';
 

+ 1 - 0
src/app/tab1/tab1.page.html

@@ -23,6 +23,7 @@
       message="请先登录"
       [buttons]="ok"
     ></ion-alert>
+    
     <ion-card *ngIf="user" (click)="navigateTo('模拟面试')"routerLink="/ai/chat">
       <ion-card-header>
         <ion-card-title>模拟面试</ion-card-title>

+ 3 - 3
src/app/tab1/tab1.page.ts

@@ -28,11 +28,11 @@ export class Tab1Page implements OnInit{
   },]
   user:Parse.User|undefined
   constructor(private router: Router) { 
-    let a=setInterval(() => {
-    this.user =  Parse.User.current()
-  }, 100);
   }
   ngOnInit(): void {
+    let a=setInterval(() => {
+      this.user =  Parse.User.current()
+    }, 1);
   }
   navigateTo(path:string){
     

+ 1 - 5
src/modules/aigc/agent/agent-shige/agent-shige.page.html

@@ -8,11 +8,7 @@
     </ion-title>
   </ion-toolbar>
 </ion-header>
-<ion-alert
-[isOpen]="isAlertOpen"
-header="正在为您生成"
-subHeader="生成中请等待"
-></ion-alert>
+
 <ion-content>
   <ion-item>
     <ion-input placeholder="关键词" [(ngModel)]="jobTitle"></ion-input>

+ 0 - 1
src/modules/aigc/agent/agent-shige/agent-shige.page.ts

@@ -11,7 +11,6 @@ import { ActivatedRoute, Router } from '@angular/router';
 export class AgentShigePage implements OnInit {
   messageList:Array<TestRxjsChatMessage> = []
   jobTitle:string | undefined |null
-  isAlertOpen = true;
   constructor(
     private route:ActivatedRoute,
     private router:Router,

+ 1 - 1
src/server/BoleMbti.js

@@ -3,7 +3,7 @@
 // 引用Parse JS SDK
 const Parse = require("parse/node");
 Parse.initialize("dev"); // 设置applicationId
-Parse.serverURL = "http://web2023.fmode.cn:9999/parse"; // 设置serverURL
+Parse.serverURL = "https://web2023.fmode.cn/parse"; // 设置serverURL
 
 let mbtiData = {
     "ISTJ": {