mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-06 10:54:07 +08:00
update files
This commit is contained in:
parent
c94ae13ceb
commit
a673f3498a
@ -152,7 +152,7 @@ module.exports = Vue.component('app-main', {
|
|||||||
runtime.worker.port.postMessage({
|
runtime.worker.port.postMessage({
|
||||||
action: 'write',
|
action: 'write',
|
||||||
name: project.name,
|
name: project.name,
|
||||||
data: '\r\n\u001b[32m' + (status === 0 ? '执行' : '结束')
|
data: '\u001b[32m' + (status === 0 ? '执行' : '结束')
|
||||||
+ '命令\u001b[0m: \u001b[35m' + name + '-\[' + command + '\]\u001b[0m\r\n'
|
+ '命令\u001b[0m: \u001b[35m' + name + '-\[' + command + '\]\u001b[0m\r\n'
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -216,10 +216,10 @@ module.exports = Vue.component('app-main', {
|
|||||||
case 'data':
|
case 'data':
|
||||||
break;
|
break;
|
||||||
case 'error':
|
case 'error':
|
||||||
data = '\r\n\u001b[31m发生错误: \u001b[0m' + data + '\r\n';
|
data = '\u001b[31m发生错误: \u001b[0m' + data + '\r\n';
|
||||||
break;
|
break;
|
||||||
case 'close':
|
case 'close':
|
||||||
data = '\r\n\u001b[32m' + (status === 1 ? '执行' : '结束') + '命令成功\u001b[0m\r\n';
|
data = '\u001b[32m' + (status === 1 ? '执行' : '结束') + '命令成功\u001b[0m\r\n';
|
||||||
status = 0;
|
status = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user