fix -- bug

This commit is contained in:
yuping
2023-02-23 15:17:03 +08:00
parent 7eae401bdb
commit db6d5caf0b
2 changed files with 9 additions and 10 deletions

View File

@@ -77,13 +77,13 @@ export default createStore({
},
actions: {
getProjectInfo(content, {projectId}) {
content.state.projectInfo.projectId || request(PROJECT_PROCESS, {projectId}).then(res => {
request(PROJECT_PROCESS, {projectId}).then(res => {
content.commit('SET_PROJECT_INFO', res.data)
content.commit('INIT_PROJECT_INFO')
})
},
getRouterInfo(content, {routerId}) {
content.state.routerInfo.routerId || request(ROUTER_PROCESS, {routerId}).then(res => {
request(ROUTER_PROCESS, {routerId}).then(res => {
content.commit('SET_ROUTER_INFO', res.data)
content.commit('INIT_ROUTER_INFO')
})