Skip to content

Commit

Permalink
fix: 🔨 fix expected type routing, NDE guides added
Browse files Browse the repository at this point in the history
  • Loading branch information
marcodarko committed Dec 23, 2023
1 parent 8b8e3a6 commit e01ccc1
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions nuxt-app/store/modules/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ export const auth = {
},
actions: {
checkUser({ commit }) {
if (process.env.NODE_ENV == "development") {
commit("saveUser", {
user: {
name: "Marco Cano",
email: "[email protected]",
login: "marcodarko",
avatar_url: "https://avatars.githubusercontent.com/u/23092057?v=4",
},
});
} else {
// if (process.env.NODE_ENV == "development") {
// commit("saveUser", {
// user: {
// name: "Marco Cano",
// email: "[email protected]",
// login: "marcodarko",
// avatar_url: "https://avatars.githubusercontent.com/u/23092057?v=4",
// },
// });
// } else {
let config = useRuntimeConfig();
axios
.get(config.public.apiUrl + "/user")
Expand All @@ -43,7 +43,7 @@ export const auth = {
throw err;
});
}
},
// },
},
getters: {
userInfo: (state) => {
Expand Down

0 comments on commit e01ccc1

Please sign in to comment.