mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-17 08:54:19 +08:00
初步完成axios、fetch组件
This commit is contained in:
@@ -14,6 +14,8 @@ export function generateCode(commandFlow) {
|
||||
|
||||
if (cmd.value === "ubrowser") {
|
||||
line += `await ${cmd.argv}`;
|
||||
} else if (cmd.value === "axios" || cmd.value === "fetch") {
|
||||
line += `await ${cmd.argv}`;
|
||||
} else {
|
||||
line += `${cmd.isAsync ? "await " : ""}${cmd.value}(${cmd.argv})`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user