支持服务端抽稀和服务发布

This commit is contained in:
lin
2025-11-02 23:50:07 +08:00
parent 2a5435c810
commit 311b59870c
29 changed files with 1930 additions and 367 deletions

View File

@@ -25,7 +25,8 @@ const getDefaultState = () => {
return {
token: getToken(),
name: '',
serverId: ''
serverId: '',
showConfirmBoxForLoginLose: true
}
}
@@ -43,6 +44,9 @@ const mutations = {
},
SET_SERVER_ID: (state, serverId) => {
state.serverId = serverId
},
SET_CONFIRM_BOX: (state, status) => {
state.showConfirmBoxForLoginLose = status
}
}
@@ -59,6 +63,7 @@ const actions = {
commit('SET_TOKEN', data.accessToken)
commit('SET_NAME', data.username)
commit('SET_SERVER_ID', data.serverId)
commit('SET_CONFIRM_BOX', true)
setToken(data.accessToken)
setName(data.username)
setServerId(data.serverId)
@@ -168,6 +173,9 @@ const actions = {
reject(error)
})
})
},
closeConfirmBoxForLoginLose({ commit }) {
commit('SET_CONFIRM_BOX', false)
}
}