routerfix
This commit is contained in:
parent
7f52347b99
commit
dcff22fa32
|
@ -58,7 +58,7 @@ export const Header = () => {
|
|||
<ul class="col main-navigation text-xl inline-flex" classList={{ fixed: fixed() }}>
|
||||
<For each={resources}>
|
||||
{(r: { href: string; name: string }) => (
|
||||
<li classList={{ selected: subpath() === r.href }}>
|
||||
<li classList={{ selected: r.href.startsWith(subpath()) }}>
|
||||
<a href={r.href} onClick={route}>
|
||||
{r.name}
|
||||
</a>
|
||||
|
|
|
@ -4,8 +4,8 @@ import { devtoolsExchange } from '@urql/devtools'
|
|||
// FIXME actual value
|
||||
const isDev = true
|
||||
|
||||
// export const baseUrl = 'https://newapi.discours.io'
|
||||
export const baseUrl = 'http://localhost:8000'
|
||||
export const baseUrl = 'https://newapi.discours.io'
|
||||
//export const baseUrl = 'http://localhost:8000'
|
||||
|
||||
const exchanges: Exchange[] = [dedupExchange, fetchExchange]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user