์—๋Ÿฌ๋ฉ”์„ธ์ง€ ๋‚ด์šฉ
Module Error (from ./node_modules/eslint-loader/index.js):
error: Use object destructuring (prefer-destructuring) at src\views\mr\BrandPerformance.vue:296:13:
  294 |       const compComboId = '#PRODUCT_BY_RANGE#';
  295 |       const yyyymm = this.query.yyyymm.replace(/-/gi, '');
> 296 |       const prodRangeCd = this.query.prodRangeCd;
      |             ^
  297 |       const rs = await this.compCodeList(compComboId, yyyymm, prodRangeCd);
  298 |       const clsRow = rs.data.resultList;

 

์œ„ ์—๋Ÿฌ๋Š” this.query.prodRangeCd๋ฅผ ๊ตฌ์กฐ ๋ถ„ํ•ด๋ฅผ ํ†ตํ•ด ๊ฐ€์ ธ์˜ค์ง€ ์•Š์•˜๊ธฐ ๋•Œ๋ฌธ์— ๋ฐœ์ƒํ•œ๋‹ค.

๊ฐ์ฒด ๊ตฌ์กฐ ๋ถ„ํ•ด๋ฅผ ํ†ตํ•ด this.query์˜ ์†์„ฑ์„ ์ข€ ๋” ๊ฐ„๊ฒฐํ•˜๊ฒŒ ์ถ”์ถœํ•˜๋ผ๋Š” ๋‚ด์šฉ์ด๋‹ค.

this.query ๊ฐ์ฒด์—์„œ ์—ฌ๋Ÿฌ ์†์„ฑ์„ ๊ฐ€์ ธ์˜จ๋‹ค๋ฉด ๊ตฌ์กฐ ๋ถ„ํ•ด๋ฅผ ํ†ตํ•ด ์ฝ”๋“œ์˜ ๊ฐ€๋…์„ฑ์„ ๋†’์ผ ์ˆ˜ ์žˆ๋‹ค.

 

 

 

์ˆ˜์ • ๋ฐ˜์˜
const { yyyymm, prodRangeCd } = this.query;
const compComboId = '#PRODUCT_BY_RANGE#';
const formattedYyyymm = yyyymm.replace(/-/gi, '');
const rs = await this.compCodeList(compComboId, formattedYyyymm, prodRangeCd);
const clsRow = rs.data.resultList;

 

์ด๋ ‡๊ฒŒ ์ˆ˜์ •ํ•˜๋ฉด this.query ๊ฐ์ฒด์—์„œ yyyymm๊ณผ prodRangeCd๋ฅผ ํ•œ ๋ฒˆ์— ๊ตฌ์กฐ ๋ถ„ํ•ดํ•˜์—ฌ ์ถ”์ถœํ•  ์ˆ˜ ์žˆ๋‹ค.

'Errors' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[SVN] svn commit has encountered a problem  (0) 2022.05.23

Eclipse์—์„œ SVN ์‚ฌ์šฉ ์ค‘ Commit์ด ์•ˆ ๋˜๋Š” ์˜ค๋ฅ˜๊ฐ€ ์ƒ๊ฒจ์„œ ํ•ด๊ฒฐ ํ›„ ์ ๋Š” ๊ธฐ๋ก

 

์‚ฌ์‹ค ๊ฐ„๋‹จํ•ด์„œ ์ฐพ์•„๋ณด๋Š”๋ฐ ์‹œ๊ฐ„์„ ํˆฌ์žํ•œ ๊ฑด ์•„๋‹ˆ์ง€๋งŒ

์•ž์œผ๋กœ ์ด๊ฒƒ์ €๊ฒƒ ์—ด์‹ฌํžˆ ๊ธฐ๋กํ•˜๋ ค๊ณ  ์‹œ์ž‘ํ•ด๋ด„ ๐Ÿ˜œ

 

 


 

 

1. ์˜ค๋ฅ˜ ๋ฉ”์„ธ์ง€

 Item is out of date
svn: While preparing 'C:\...' for commit
svn: File '/branch/...' is out of date

    Working copy is not up-to-date
svn: Commit failed (details follow):
svn: File 'C:\...' is out of date
Item is out of date
svn: While preparing 'C:\...' for commit
svn: File '/branch/...' is out of date

 

 

2. ์›์ธ

ํด๋ผ์ด์–ธํŠธ๊ฐ€ ๊ฐ€์ง€๊ณ  ์žˆ๋Š” ํŒŒ์ผ์˜ ์ •๋ณด๊ฐ€ ๋„ˆ๋ฌด ์˜ค๋ž˜๋˜์–ด์„œ ๋œจ๋Š” ์˜ค๋ฅ˜๋ผ๊ณ  ํ•œ๋‹ค.

 

 

3. ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

ํ—ค๋” ์ •๋ณด๋ฅผ ์ตœ์‹ ํ™”ํ•œ ํ›„ ๋‹ค์‹œ ์ปค๋ฐ‹ํ•˜๊ธฐ ๐Ÿ˜Š

 

 

ํ”„๋กœ์ ํŠธ ์šฐํด๋ฆญ → Team → Update to HEAD → Commit

'Errors' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[Vue] Use object destructuring (lint error)  (0) 2025.02.18

+ Recent posts