このコミットが含まれているのは:
テクニカル諏訪子 2018-03-09 20:09:45 +09:00
コミット 4682eee676
1個のファイルの変更10行の追加10行の削除

ファイルの表示

@ -150,9 +150,6 @@ export default {
command: '' command: ''
}); });
console.log('Line', this.line);
console.log('Res', this.result);
this.line.push({ this.line.push({
active: true, active: true,
username: this.user, username: this.user,
@ -175,13 +172,16 @@ console.log('Res', this.result);
}) })
}, },
cd(pwd) { cd(pwd) {
if (pwd === '/fuck' || pwd === 'fuck') this.result.push({ if (pwd === '/fuck' || pwd === 'fuck') {
active: true, this.result.push({
text: 'bash: cd: ' + pwd + ': このファイルまたはフォルダがありません。', active: true,
field: false, text: 'bash: cd: ' + pwd + ': このファイルまたはフォルダがありません。',
password: false, field: false,
command: '' password: false,
}); command: ''
});
return false;
}
if (!pwd.startsWith('/')) pwd = '/' + pwd; if (!pwd.startsWith('/')) pwd = '/' + pwd;
this.pwd = pwd; this.pwd = pwd;