Skip to content

Commit

Permalink
use absolute path for routing to chatList
Browse files Browse the repository at this point in the history
closes #222
  • Loading branch information
nanu-c authored and Flaburgan committed Oct 9, 2020
1 parent 4a1bf75 commit c846075
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions axolotl-web/src/store/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default new Vuex.Store({
}
else if (type == "registrationDone") {
if (state.registrationStatus != "done") {
window.router.push("chatList")
window.router.push("/chatList")
this.commit("SET_REGISTRATION_STATUS", "done")
this.dispatch("getChatList")
}
Expand All @@ -159,8 +159,6 @@ export default new Vuex.Store({
},
SET_MESSAGELIST(state, messageList) {
state.messageList = messageList;
// router.push('/chat/'+)

},
SET_MORE_MESSAGELIST(state, messageList) {
if (messageList.Messages != null) {
Expand Down

0 comments on commit c846075

Please sign in to comment.