mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-04-04 16:33:14 +08:00
perf: Improve /utils/env API
- Add version number - Add support for Stash & ShadowRocket backend
This commit is contained in:
@@ -77,7 +77,8 @@ const store = new Vuex.Store({
|
||||
// fetch env
|
||||
async FETCH_ENV({state}) {
|
||||
return axios.get("/utils/env").then(resp => {
|
||||
state.env = resp.data;
|
||||
const {data} = resp.data;
|
||||
state.env = data;
|
||||
})
|
||||
},
|
||||
async FETCH_SETTINGS({state}) {
|
||||
|
||||
Reference in New Issue
Block a user