update 实现修改密码. 并对一些用户填写的格式进行了验证

This commit is contained in:
2021-05-09 20:00:50 +08:00
parent 57e1a4231d
commit 76a74dd63f
19 changed files with 462 additions and 53 deletions

View File

@@ -18,6 +18,7 @@ axios.defaults.baseURL = '/api'
* api.getItemGroupType(parmas).then(...)
*/
import urls from './requests'
import { settings } from 'nprogress'
const initInstance = (options) => {
const instance = axios
@@ -45,10 +46,12 @@ const errorNotification = ({ code, message }) => {
switch (message.constructor) {
case Array:
message.map(p => {
app.$notification.error({
duration: 30,
message: p.field,
description: p.messages.join('/'),
setTimeout(() => {
app.$notification.error({
duration: 30,
message: p.field,
description: p.messages.join('/'),
})
})
})
break