here is the code
Vue.mixin(windowMixin)
export default {
name: "App",
methods: {
getIpAddress(){
localStorage.getItem('ipAddress') ? '' : localStorage.setItem('ipAddress', Response.data);
this.$axios.get('https://www.cloudflare.com/cdn-cgi/trace', function(data) {
console.log(data)
})
},
mounted() {
this.getIpAddress();
}
};
Result is telling me that I have saved user's ip address as "undefined" Please help me out, I'm new at Front end
Response.data? Where is that defined?undefined? also you should check withnullinstead of""localStorage?