From 4682eee676a3427dd086e684630efb597c50b0b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=86=E3=82=AF=E3=83=8B=E3=82=AB=E3=83=AB=E8=AB=8F?= =?UTF-8?q?=E8=A8=AA=E5=AD=90?= Date: Fri, 9 Mar 2018 20:09:45 +0900 Subject: [PATCH] Oops. --- resources/assets/js/components/cli.vue | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/resources/assets/js/components/cli.vue b/resources/assets/js/components/cli.vue index 6065ff3..80834c4 100644 --- a/resources/assets/js/components/cli.vue +++ b/resources/assets/js/components/cli.vue @@ -150,9 +150,6 @@ export default { command: '' }); -console.log('Line', this.line); -console.log('Res', this.result); - this.line.push({ active: true, username: this.user, @@ -175,13 +172,16 @@ console.log('Res', this.result); }) }, cd(pwd) { - if (pwd === '/fuck' || pwd === 'fuck') this.result.push({ - active: true, - text: 'bash: cd: ' + pwd + ': このファイルまたはフォルダがありません。', - field: false, - password: false, - command: '' - }); + if (pwd === '/fuck' || pwd === 'fuck') { + this.result.push({ + active: true, + text: 'bash: cd: ' + pwd + ': このファイルまたはフォルダがありません。', + field: false, + password: false, + command: '' + }); + return false; + } if (!pwd.startsWith('/')) pwd = '/' + pwd; this.pwd = pwd;