본문 바로가기

분류 전체보기245

vue 팝업 종료,subscribeAction 사용시 팝업 종료해도 지속작동함. beforeDestory() 로 제거해줘야함. 예시 Vue.js의 mounted 라이프사이클 훅은 컴포넌트가 화면에 마운트된 후에 호출됩니다. 따라서 모달이 닫혀도 컴포넌트가 마운트된 상태에서는 mounted 훅이 호출될 수 있습니다. 모달이 닫힌 후에 컴포넌트의 라이프사이클 훅이 더 이상 호출되지 않도록 하려면, beforeDestroy 라이프사이클 훅에서 해당 컴포넌트에서 사용한 리소스들을 해제하고 이벤트 리스너 등을 제거해주면 됩니다. mounted(){ const me = this; me.unsubscribe = me.$store.subscribeAction({ after: (action, state) => { switch(action.type){ case 'kioskStore/IDLE_INCREASE': if(me.maxIdleTime == me.. 2023. 2. 28.
부트스트랩 팝업 백그라운드 스코롤 안되고 팝업만 되게하기 div class="d-flex h-100 overflow-auto"> 2023. 2. 17.
electron 빌드 오류 in mac m1 This is not a published, standalone application and we are unable to locate the .NET Core SDK. 명령어 "electron:serve": "vue-cli-service electron:serve -- --ia32 --mode none", ia32 칩이 문제일거 같음(삽질) Uncaught Exception: Error: This is not a published, standalone application and we are unable to locate the .NET Core SDK. Please make sure that it is installed; see http://microsoft.com/net/core for more details. at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1846) at Object.Module._ext.. 2023. 1. 31.
vue emit사용시 on 이 없어도 에러 발생하지 않는다. emit과 on은 한쌍으로 부모 자식 페이지 간의 호출부분과 작동부분이 별도의 페이지에 작성된다. 그러므로 emit명령어를 작성한 후 그에 상응하는 on 함수를 작성하지 않더라도 에러를 표출하지 않는다. emit소스는 해당 함수를 호출하고 역할을 마친다. 마찬가지로 on또한 emit으로 호출하는 영역이 존재하지 않더라도 문제되지 않는다. this.$root.$emit('startFunction', { val1: 0, val2: 0}); this.$root.$on('startFunction', async (params) => { if(params.tabIndex == me.tabIndex){ console.log('checkLine1'); if(params.val2){ console.log('checkLi.. 2023. 1. 26.
상식) laravel 트렌젝션을 열었으면 꼭 닫기 처리를 해주어야 한다. 트렌젝션 종료가 안되면 중복사용시 로직이 꼬여서 난리가 날 수 있다. 사용예시 try{ DB::beginTransaction(); if(true){ DB::rollback(); }else{ DB::commit(); } }catch(e){ DB::rollback(); } 2023. 1. 26.
상식) 배열 관련 처리시 try catch finall 배열 관련 데이터를 처리할 때에는 index 값이 존재하지 않을시 에러를 표출하기 때문에 try catch문으로 예외 처리를 해두어야 에러가 발생하지 않는다. 예시 try{ this.item = items[this.Index]; }catch(e){ console.error(e); }finally{ } 2023. 1. 26.
laravel eloquent where문 () or and 처리 eloquent ->where('company_id', $companyId) ->where(function ($q){ $q->whereIn('status', ['ongoing', 'partially']) ->whereIn('type', ['dine']); //테이블 겔제대기 or 부분결제 })->orWhere(function($q){ $q->whereIn('status', ['hold']) ->whereIn('type', ['takeout']); //보류 }) ->orderBy('created_at', 'desc'); mysql // where ((status='onging' or status='partially') and type='dind') // or ((status='hold') and type=.. 2023. 1. 20.
nvm node npm 버전 비일치 https://nodejs.org/ko/download/releases/ 이전 릴리스 | Node.js Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. nodejs.org node 14.8 => npm 6 점대가 정상이나 npm9가 설치되는 현상 발생 nvm 으로 14.8 제거 후 재 설치 하여 해결! 2023. 1. 18.
✖ WARNING: Couldn't retrieve installed python packages. ✖ WARNING: Couldn't retrieve installed python packages. We cannot verify your python installation is setup correctly. Please, make sure you have both 'python' and 'pip' installed. Error while validating Python packages. Error is: Command failed: python -c "import six" python: error: Failed to locate 'python'. xcode-select: Failed to locate 'python', requesting installation of command line develo.. 2023. 1. 17.
WARNING: Xcode is not installed or is not configured properly. ✖ WARNING: Xcode is not installed or is not configured properly. You will not be able to build your projects for iOS or run them in the iOS Simulator. To be able to build for iOS and run apps in the native emulator, verify that you have installed Xcode. x code install but this message is output we need setting in xcode like this! (prefrences->locations->CommandLineTools) 2023. 1. 17.
git pull 안됨 현상: git branch 하나따서 pull & merge 받는데 정상작동 안함 에러메세지 : yongsinkwon@yongsinui-MacBookPro 폴더명 % git pull There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull If you wish to set tracking information for this branch you can do so with: git branch --set-upstream-to=origin/ yongsin 해결 방법 : vi code에서 publish 해주니.. 2023. 1. 12.
n 버전 변경시 npm 삭제 안됨 n 으로 설치 시 npm 안지워지는 현상 발생 완벽 삭제 이후 https://blog.userinsight.co.kr/m/3 Mac 에서 Node 완전삭제 후 재설치하기 개요시스템을 관리하다 보면 예기치 못한 상황들이 종종 발생하기 마련이죠.이 글에서는 Mac 환경에서 Nodejs를 완전히 삭제 후 다시 설치하는 방법을 안내합니다. 삭제하기(brew)다음 명령어를 이 blog.userinsight.co.kr https://velog.io/@minidoo/Node-mac에서-Node.js-완전히-삭제하기 nvm 설치 https://memostack.tistory.com/274 2023. 1. 11.