mirror of
https://forgejo.merr.is/annika/isl-vue3.git
synced 2025-12-11 10:56:31 -05:00
Why Is Config Broken On the Server?
This commit is contained in:
parent
a4c98b1818
commit
42e9b2f628
1 changed files with 7 additions and 0 deletions
|
|
@ -50,6 +50,13 @@ export const usePowerItems = defineStore('powerItems', () => {
|
|||
|
||||
//#region loaders
|
||||
async function fetchBlessingItems() {
|
||||
getConfig().then((conf: Config | null) => {
|
||||
if (conf !== null) {
|
||||
apiBaseURL = conf.apiBaseURL
|
||||
return conf
|
||||
}
|
||||
throw new Error("Could not fetch config")
|
||||
})
|
||||
axios
|
||||
.get(apiBaseURL + '/powerItems/byType/' + BLESSING + '/asMap', noCacheConfig)
|
||||
.then((resp) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue