refactor(api): 重构系统模块API函数命名规范
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
<script>
|
||||
import store from '@/store'
|
||||
import { IsValidEmail } from '@/utils/CsValidateUtil'
|
||||
import { updateEmail } from '@/api/system/user'
|
||||
import { updateUserEmailByUsername } from '@/api/system/user'
|
||||
import { sendResetEmailCode } from '@/api/system/code'
|
||||
|
||||
export default {
|
||||
@@ -113,7 +113,7 @@ export default {
|
||||
this.$refs['form'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.loading = true
|
||||
updateEmail(this.form).then(res => {
|
||||
updateUserEmailByUsername(this.form).then(res => {
|
||||
this.loading = false
|
||||
this.resetForm()
|
||||
this.$notify({
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
<script>
|
||||
import store from '@/store'
|
||||
import { updatePass } from '@/api/system/user'
|
||||
import { updateUserPasswordByUsername } from '@/api/system/user'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -69,7 +69,7 @@ export default {
|
||||
this.$refs['form'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.loading = true
|
||||
updatePass(this.form).then(res => {
|
||||
updateUserPasswordByUsername(this.form).then(res => {
|
||||
this.resetForm()
|
||||
this.$notify({
|
||||
title: '密码修改成功,请重新登录',
|
||||
|
||||
Reference in New Issue
Block a user