perf: Improve /utils/env API

- Add version number
- Add support for Stash & ShadowRocket backend
This commit is contained in:
Peng-YM
2022-06-29 11:25:50 +08:00
parent 7e1139528e
commit ffc7c07469
6 changed files with 21 additions and 13 deletions

View File

@@ -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}) {