Skip to content

Commit 3785a10

Browse files
committed
#124 update read me and other site stuff
1 parent a003b02 commit 3785a10

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/routes/+layout.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export async function load({ fetch }) {
1111
if (import.meta.env.DEV) {
1212
console.log('dev');
1313

14-
setApiConfig('http://localhost:44345', '', '');
14+
setApiConfig('http://localhost:44345', 'admin', '123456');
1515

1616
} else if (import.meta.env.PROD) {
1717
console.log('PROD');

src/routes/components/page/+page.svelte

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@
3535
title += Date.now();
3636
}
3737
38+
async function getQuery() {
39+
await Api.post('/ddm/PublicSearch/Query', {
40+
searchType: 'new'
41+
});
42+
}
43+
3844
onMount(async()=>{
3945
var res = await Api.get("test/errortest");
4046
})
@@ -50,6 +56,7 @@
5056
>
5157
<svelte:fragment slot="left">
5258
<button class="btn variant-filled-error" on:click={updateTitle}>change title </button>
59+
<button class="btn variant-filled-error" on:click={getQuery}>get query </button>
5360
<div class="w-screen">
5461

5562
</div>

0 commit comments

Comments
 (0)