Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ionic framework 爱奥尼亚2号酒店_Ionic Framework_Ionic2 - Fatal编程技术网

Ionic framework 爱奥尼亚2号酒店

Ionic framework 爱奥尼亚2号酒店,ionic-framework,ionic2,Ionic Framework,Ionic2,我连接了一个API的外部链接,然后我必须保持会话以使用连接会话的另一个链接, 这是用于身份验证的代码,我需要发送一个新的post请求以显示列表,但使用相同的登录会话 请始终将代码作为文本添加到您的问题中,而不是作为截图添加(this.user&&this.pwd){let postData=new FormData();postData.append('username',this.user);postData.append('password',this.pwd);this.http.post

我连接了一个API的外部链接,然后我必须保持会话以使用连接会话的另一个链接, 这是用于身份验证的代码,我需要发送一个新的post请求以显示列表,但使用相同的登录会话


请始终将代码作为文本添加到您的问题中,而不是作为截图添加(this.user&&this.pwd){let postData=new FormData();postData.append('username',this.user);postData.append('password',this.pwd);this.http.post(this.url,postData,{withCredentials:true})。订阅(Response=>{console.log(Response.json());if(!Response.json().token){console.log('connexio non reussi reussi');this.presentAlerts();}else{console.log('connexio reussi');this.navCtrl.setRoot(TabsPage);console.log(Response.headers.getAll('set cookie”);}})