Commit cfbe379e by handsomeFu Committed by GitHub

fix: correct button layout in English locale (#4277)

Co-authored-by: vince <vince292007@gmail.com>
1 parent 388e5b5c
...@@ -61,7 +61,7 @@ async function checkForUpdates() { ...@@ -61,7 +61,7 @@ async function checkForUpdates() {
} }
function handleNotice(versionTag: string) { function handleNotice(versionTag: string) {
const { dismiss } = toast({ const { dismiss } = toast({
action: h('div', [ action: h('div', { class: 'inline-flex items-center' }, [
h( h(
ToastAction, ToastAction,
{ {
...@@ -94,7 +94,7 @@ function handleNotice(versionTag: string) { ...@@ -94,7 +94,7 @@ function handleNotice(versionTag: string) {
} }
function start() { function start() {
// 每5分钟检查一次 // 每 checkUpdatesInterval(默认值为1) 分钟检查一次
timer.value = setInterval( timer.value = setInterval(
checkForUpdates, checkForUpdates,
props.checkUpdatesInterval * 60 * 1000, props.checkUpdatesInterval * 60 * 1000,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!