优化安装报错问题
This commit is contained in:
@@ -100,6 +100,16 @@ export const useTerminal = defineStore(
|
||||
}
|
||||
|
||||
function addTask(command: string, blockOnFailure = true, extend = '', callback: Function = () => {}) {
|
||||
const duplicatePending = state.taskList.some(
|
||||
(item) =>
|
||||
item.command === command &&
|
||||
(item.status === taskStatus.Waiting ||
|
||||
item.status === taskStatus.Connecting ||
|
||||
item.status === taskStatus.Executing)
|
||||
)
|
||||
if (duplicatePending) {
|
||||
return
|
||||
}
|
||||
if (!state.show) toggleDot(true)
|
||||
state.taskList = state.taskList.concat({
|
||||
uuid: uuid(),
|
||||
|
||||
Reference in New Issue
Block a user