mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-09 13:40:06 +00:00
chore: detail optimization
This commit is contained in:
@@ -124,28 +124,24 @@ export function getEnvConfig(match = 'VITE_GLOB_', confFiles = ['.env', '.env.pr
|
||||
return envConfig;
|
||||
}
|
||||
|
||||
export function successConsole(message: any) {
|
||||
function consoleFn(color: string, message: any) {
|
||||
console.log(
|
||||
chalk.blue.bold('**************** ') +
|
||||
chalk.green.bold('✨ ' + message) +
|
||||
(chalk as any)[color].bold(message) +
|
||||
chalk.blue.bold(' ****************')
|
||||
);
|
||||
}
|
||||
|
||||
export function successConsole(message: any) {
|
||||
consoleFn('green', '✨ ' + message);
|
||||
}
|
||||
|
||||
export function errorConsole(message: any) {
|
||||
console.log(
|
||||
chalk.blue.bold('**************** ') +
|
||||
chalk.red.bold('✨ ' + message) +
|
||||
chalk.blue.bold(' ****************')
|
||||
);
|
||||
consoleFn('red', '✨ ' + message);
|
||||
}
|
||||
|
||||
export function warnConsole(message: any) {
|
||||
console.log(
|
||||
chalk.blue.bold('**************** ') +
|
||||
chalk.yellow.bold('✨ ' + message) +
|
||||
chalk.blue.bold(' ****************')
|
||||
);
|
||||
consoleFn('yellow', '✨ ' + message);
|
||||
}
|
||||
|
||||
export function getCwdPath(...dir: string[]) {
|
||||
|
Reference in New Issue
Block a user