mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-04 21:06:03 +00:00
feat: 仪表盘基本数据
This commit is contained in:
@@ -8,7 +8,8 @@ export default createStore({
|
||||
autoRefreshLog: false,
|
||||
settingsPageTab: '',
|
||||
version: 'v0.0.0',
|
||||
debug: false
|
||||
debug: false,
|
||||
enabledPlatformCount: 0,
|
||||
},
|
||||
mutations: {
|
||||
initializeFetch() {
|
||||
@@ -17,6 +18,14 @@ export default createStore({
|
||||
axios.get('/system/info').then(response => {
|
||||
this.state.version = response.data.data.version
|
||||
this.state.debug = response.data.data.debug
|
||||
this.state.enabledPlatformCount = response.data.data.enabled_platform_count
|
||||
})
|
||||
},
|
||||
fetchSystemInfo() {
|
||||
axios.get('/system/info').then(response => {
|
||||
this.state.version = response.data.data.version
|
||||
this.state.debug = response.data.data.debug
|
||||
this.state.enabledPlatformCount = response.data.data.enabled_platform_count
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user