This commit is contained in:
yumoqing 2024-11-25 18:09:34 +08:00
parent e8e09a99c1
commit dc4f4e86c1
3 changed files with 1 additions and 7 deletions

View File

@ -30,10 +30,5 @@
<script src="/bricks/bricks.js"></script> <script src="/bricks/bricks.js"></script>
<script src="/js/myapp.js"></script> <script src="/js/myapp.js"></script>
<script> <script>
/*
if (bricks.is_mobile()){
alert('wh=' + window.innerWidth + ':' + window.innerHeight);
}
*/
const opts = { const opts = {
"widget": "widget":

View File

@ -121,7 +121,7 @@ bricks.HttpText = class {
} }
} }
const fetchResult = await fetch(url, _params); 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){ if (fetchResult.status == 401 && bricks.app.login_url){
console.log('go to login') console.log('go to login')
return await this.withLoginInfo(url, _params); return await this.withLoginInfo(url, _params);

View File

@ -14,7 +14,6 @@ bricks.is_empty = function(obj){
return JSON.stringify(obj) === '{}'; return JSON.stringify(obj) === '{}';
} }
bricks.serverdebug = async function(message){ bricks.serverdebug = async function(message){
console.log(arguments, 'er==============er');
var jc = new bricks.HttpJson(); var jc = new bricks.HttpJson();
await jc.post(url='/debug', {params:{ await jc.post(url='/debug', {params:{
message:message message:message