1import http from '@/api/http'; 2 3export default (email: string, password: string): Promise<void> => { 4 return new Promise((resolve, reject) => { 5 http.put('/api/client/account/email', { email, password }) 6 .then(() => resolve()) 7 .catch(reject); 8 }); 9}; 10 11