Skip to content

Commit 2ce9dac

Browse files
committed
fix test
1 parent b9006f7 commit 2ce9dac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/getConfig.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
interface IGlobalConfig {
2-
api: string
2+
api?: string
33
}
44

55
declare global {
@@ -10,5 +10,5 @@ declare global {
1010
}
1111

1212
export default function getConfig() {
13-
return window.CONFIG || {}
13+
return window.CONFIG || {api: ''}
1414
}

0 commit comments

Comments
 (0)