Browse Source

메인화면 버그 수정

hoseongs 2 years ago
parent
commit
8071ebd695
1 changed files with 9 additions and 1 deletions
  1. 9 1
      src/main/webapp/js/app/main.js

+ 9 - 1
src/main/webapp/js/app/main.js

@@ -294,7 +294,15 @@ function drawLine() {
294
 
294
 
295
 var itp_fn_MAIN_COUNT = function() {
295
 var itp_fn_MAIN_COUNT = function() {
296
 	
296
 	
297
-	const key = { brandId:fn_make_user_info.get('brandId'), storeId:fn_make_user_info.get('storeId'), spplyId:fn_make_user_info.get('spplyId') };
297
+	var brandId = fn_make_user_info.get('brandId');
298
+	var storeId = fn_make_user_info.get('storeId');
299
+	var spplyId = fn_make_user_info.get('spplyId');
300
+	
301
+	if(brandId == '' && storeId == '' && spplyId == '') {
302
+		return;
303
+	}
304
+	
305
+	const key = { brandId:brandId, storeId:storeId, spplyId:spplyId };
298
 	var param = $.param(key);
306
 	var param = $.param(key);
299
 	fn_ajax_call(MAIN_CHART_COUNT, param, function(result) {
307
 	fn_ajax_call(MAIN_CHART_COUNT, param, function(result) {
300
 		
308