|
@@ -59,9 +59,9 @@ function renderView() {
|
|
|
}).then(res => {
|
|
|
console.log(res.data);
|
|
|
let userInfo = res.data;
|
|
|
- if(!userInfo.user_info) {
|
|
|
- window.location.replace("login.html");
|
|
|
- }
|
|
|
+ // if(!userInfo.user_info) {
|
|
|
+ // window.location.replace("login.html");
|
|
|
+ // }
|
|
|
localStorage.setItem('user_profile', JSON.stringify(res.data));
|
|
|
if(userInfo.user_info.left_sec < 20){
|
|
|
let title = "剩餘秒數不足";
|
|
@@ -169,7 +169,7 @@ function renderView() {
|
|
|
$('.card-profile').html(str);
|
|
|
}).catch(err => {
|
|
|
console.log(err);
|
|
|
- window.location.replace("login.html");
|
|
|
+ //window.location.replace("login.html");
|
|
|
})
|
|
|
}
|
|
|
|