mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: 闭嘴时间过长的bug
This commit is contained in:
parent
156a669ec6
commit
d4470507af
1 changed files with 6 additions and 6 deletions
|
|
@ -299,9 +299,9 @@ export function getDefaultUserSetting () {
|
|||
|
||||
export function parseDuration (duration) {
|
||||
const timeMap = {
|
||||
秒: 1000,
|
||||
分: 60 * 1000,
|
||||
小时: 60 * 60 * 1000
|
||||
秒: 1,
|
||||
分: 60,
|
||||
小时: 60 * 60
|
||||
}
|
||||
|
||||
// 去掉多余的空格并将单位转化为小写字母
|
||||
|
|
@ -331,9 +331,9 @@ export function parseDuration (duration) {
|
|||
|
||||
export function formatDuration (duration) {
|
||||
const timeMap = {
|
||||
小时: 60 * 60 * 1000,
|
||||
分钟: 60 * 1000,
|
||||
秒钟: 1000
|
||||
小时: 60 * 60,
|
||||
分钟: 60,
|
||||
秒钟: 1
|
||||
}
|
||||
|
||||
const units = Object.keys(timeMap)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue