feat: select chat model

This commit is contained in:
archer
2023-05-03 15:50:31 +08:00
parent 00a99261ae
commit e384893ae0
3 changed files with 23 additions and 4 deletions

View File

@@ -14,6 +14,6 @@ export const clearToken = () => {
/**
* 把数据库读取到的price转化成元
*/
export const formatPrice = (val: number, multiple = 1) => {
export const formatPrice = (val = 0, multiple = 1) => {
return Number(((val / PRICE_SCALE) * multiple).toFixed(10));
};