Here is the code snippet:
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();
}
};
The outcome indicates that I am saving user's IP address as "undefined". Can someone please assist me with this issue? I am new to Frontend development.