mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-10 15:56:03 +00:00
perf: 首页展示版本信息
This commit is contained in:
@@ -6,8 +6,18 @@ export default createStore({
|
||||
state: {
|
||||
apiBaseUrl: 'http://localhost:5300/api/v1',
|
||||
autoRefreshLog: false,
|
||||
version: '0.0.1'
|
||||
version: 'v0.0.0',
|
||||
debug: false
|
||||
},
|
||||
mutations: {
|
||||
initializeFetch() {
|
||||
axios.defaults.baseURL = this.state.apiBaseUrl
|
||||
|
||||
axios.get('/system/info').then(response => {
|
||||
this.state.version = response.data.data.version
|
||||
this.state.debug = response.data.data.debug
|
||||
})
|
||||
}
|
||||
},
|
||||
mutations: {},
|
||||
actions: {},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user