9 lines
286 B
TypeScript
9 lines
286 B
TypeScript
import http from '@/api/http';
|
|
|
|
export default (password: string): Promise<void> => {
|
|
return new Promise((resolve, reject) => {
|
|
http.delete('/api/client/account/two-factor', { params: { password } })
|
|
.then(() => resolve())
|
|
.catch(reject);
|
|
});
|
|
};
|