bugfix
This commit is contained in:
parent
e8e09a99c1
commit
dc4f4e86c1
@ -30,10 +30,5 @@
|
||||
<script src="/bricks/bricks.js"></script>
|
||||
<script src="/js/myapp.js"></script>
|
||||
<script>
|
||||
/*
|
||||
if (bricks.is_mobile()){
|
||||
alert('wh=' + window.innerWidth + ':' + window.innerHeight);
|
||||
}
|
||||
*/
|
||||
const opts = {
|
||||
"widget":
|
||||
|
@ -121,7 +121,7 @@ bricks.HttpText = class {
|
||||
}
|
||||
}
|
||||
const fetchResult = await fetch(url, _params);
|
||||
console.log('fetchResult.status=', fetchResult.status, url, 'login url=', bricks.app.login_url);
|
||||
// console.log('fetchResult.status=', fetchResult.status, url, 'login url=', bricks.app.login_url);
|
||||
if (fetchResult.status == 401 && bricks.app.login_url){
|
||||
console.log('go to login')
|
||||
return await this.withLoginInfo(url, _params);
|
||||
|
@ -14,7 +14,6 @@ bricks.is_empty = function(obj){
|
||||
return JSON.stringify(obj) === '{}';
|
||||
}
|
||||
bricks.serverdebug = async function(message){
|
||||
console.log(arguments, 'er==============er');
|
||||
var jc = new bricks.HttpJson();
|
||||
await jc.post(url='/debug', {params:{
|
||||
message:message
|
||||
|
Loading…
Reference in New Issue
Block a user