From e01ccc1b116bbc577a9dd6181bf1f60e0bd1475f Mon Sep 17 00:00:00 2001 From: Marco Cano Date: Fri, 22 Dec 2023 16:20:59 -0800 Subject: [PATCH] fix: :hammer: fix expected type routing, NDE guides added --- nuxt-app/store/modules/auth.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/nuxt-app/store/modules/auth.js b/nuxt-app/store/modules/auth.js index 9e269628..597ba40d 100644 --- a/nuxt-app/store/modules/auth.js +++ b/nuxt-app/store/modules/auth.js @@ -22,16 +22,16 @@ export const auth = { }, actions: { checkUser({ commit }) { - if (process.env.NODE_ENV == "development") { - commit("saveUser", { - user: { - name: "Marco Cano", - email: "artofmarco@gmail.com", - 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: "artofmarco@gmail.com", + // login: "marcodarko", + // avatar_url: "https://avatars.githubusercontent.com/u/23092057?v=4", + // }, + // }); + // } else { let config = useRuntimeConfig(); axios .get(config.public.apiUrl + "/user") @@ -43,7 +43,7 @@ export const auth = { throw err; }); } - }, + // }, }, getters: { userInfo: (state) => {