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;