日志 黄

dev/chat
Lei OT 1 year ago
parent d083784a71
commit a7ccf7a9b0

@ -310,3 +310,10 @@ export const stringToColour = (str) => {
const color = '#' + hexString.substring(0, 6);
return color;
};
export const olog = (text, ...args) => {
console.log(
`%c ${text} `,
'background:#fb923c ; padding: 1px; border-radius: 3px; color: #fff',...args
);
};

Loading…
Cancel
Save