mirror of
https://github.com/Macrame-App/Macrame
synced 2025-12-29 15:29:26 +00:00
Update to UIX.
This commit is contained in:
parent
d373237127
commit
c9850dcbf8
10 changed files with 38 additions and 16 deletions
12
fe/src/services/ConfigService.js
Normal file
12
fe/src/services/ConfigService.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import axios from 'axios'
|
||||
import { appUrl } from './ApiService'
|
||||
|
||||
export const ConfigGet = async (key) => {
|
||||
console.log(window.__CONFIG__)
|
||||
|
||||
const config = await axios.get(appUrl() + '/config.json')
|
||||
|
||||
if (!config.data) return false
|
||||
|
||||
return config.data[key]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue