update goto
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
mkdir -p dist
|
||||
npm run build-embed
|
||||
cp static/Inter-Variable.ttf dist
|
||||
cp static/tailwind.js dist
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import { classNames } from '../../../utils'
|
||||
import Icon from 'svelte-awesome'
|
||||
import { ButtonType } from './model'
|
||||
// import { goto } from '$app/navigation'
|
||||
import { goto } from '$app/navigation'
|
||||
import { Loader2 } from 'lucide-svelte'
|
||||
|
||||
export let size: ButtonType.Size = 'md'
|
||||
@@ -93,7 +93,7 @@
|
||||
window.open(href, target)
|
||||
} else {
|
||||
loading = true
|
||||
// await goto(href)
|
||||
await goto(href)
|
||||
loading = false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user