SHARE
TWEET

Untitled

a guest May 16th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. editName(name) {
  2.     const { uid } = getParent(self).userStore;
  3.     const time = self.memoArray[self.editId].time;
  4.  
  5.     ref = firebase.database().ref(`user/client/${uid}/memo/${time}`);
  6.  
  7.     ref.update({ name: name }).catch(err => {
  8.       console.log(ref);
  9.     });
  10.  
  11.     self.memoArray[self.editId].name = name;
  12.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top