사용자의 uid중 숫자만을 뽑아내서 페이지에 보이도록 하려고 하는데
firebase.auth().createUserWithEmailAndPassword(this.user_id, this.user_pw).then((result)=>{
this.$store.commit('new_users', result.user.uid);
이렇게 한다음
store.js에서
state(){
return(){ new_us : null,}}
new_users(state, payload){
state.new_us = payload.replace(/[^0-9]/g,'');
}, => mutation에 있는 함수
숫자만 뽑아내서 나타내려고 하는데 안나타납니다.
나타내려고 할때는 {{$store.state.new_us}} 이렇게 했습니다.