- πΌ Currently I am working at a Swedish IT Firm (remote) as a Fullstack Developer mostly in php and vue js
- πΌ Also open to any freelance work either in Development of Fullstack Web Application, Wordpress or php and javascript based platforms
- π¬ ask me about anything, i am happy to help;
β
import axios from "axios";
const state = {
auth_role_name: "normal person",
};
const getters = {
get_auth_role_name: (state) => state.auth_role_name,
}
const actions = {
fetch_auth_info: function () {
axios.get("/api/links").then((res) => {
console.log(res.data);
});
},
}
const mutations = {
set_auth_role_name: function (state, auth_role_name) {
state.auth_role_name = auth_role_name;
},
}
β
export default {
state,
getters,
actions,
mutations,
};
β
import axios from "axios";
const state = {
auth_role_name: "normal person",
};
const getters = {
get_auth_role_name: (state) => state.auth_role_name,
}
const actions = {
fetch_auth_info: function () {
axios.get("/api/links").then((res) => {
console.log(res.data);
});
},
}
const mutations = {
set_auth_role_name: function (state, auth_role_name) {
state.auth_role_name = auth_role_name;
},
}
β
export default {
state,
getters,
actions,
mutations,
};