diff --git a/plugins/data_query/static/js/app.js b/plugins/data_query/static/js/app.js index 89cb49b95..b8850c4c0 100755 --- a/plugins/data_query/static/js/app.js +++ b/plugins/data_query/static/js/app.js @@ -353,6 +353,11 @@ function mysqlGetTableList(p){ // console.log('mysqlGetTableList',p); var sid = mysqlGetSid(); var db = mysqlGetDbName(); + + if (!db){ + return; + } + myPostCB('get_table_list',{'sid':sid,'db':db} ,function(rdata){ if (rdata.data.status){