Ver código fonte

메인화면 버그 수정

hoseongs 2 anos atrás
pai
commit
8071ebd695
1 arquivos alterados com 9 adições e 1 exclusões
  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 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 306
 	var param = $.param(key);
299 307
 	fn_ajax_call(MAIN_CHART_COUNT, param, function(result) {
300 308