Skip to content

Commit

Permalink
fix: #316
Browse files Browse the repository at this point in the history
  • Loading branch information
kailong321200875 committed Aug 17, 2023
1 parent cd0e05a commit 7582e4d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
12 changes: 8 additions & 4 deletions mock/department/index.ts
Expand Up @@ -168,8 +168,10 @@ export default [
const ids = body.ids
if (!ids) {
return {
code: '500',
message: '请选择需要删除的数据'
data: {
code: 500,
message: '请选择需要删除的数据'
}
}
} else {
return {
Expand Down Expand Up @@ -203,8 +205,10 @@ export default [
const ids = body.ids
if (!ids) {
return {
code: '500',
message: '请选择需要删除的数据'
data: {
code: 500,
message: '请选择需要删除的数据'
}
}
} else {
return {
Expand Down
6 changes: 4 additions & 2 deletions mock/table/index.ts
Expand Up @@ -246,8 +246,10 @@ export default [
const ids = body.ids
if (!ids) {
return {
code: '500',
message: '请选择需要删除的数据'
data: {
code: 500,
message: '请选择需要删除的数据'
}
}
} else {
let i = List.length
Expand Down
6 changes: 4 additions & 2 deletions mock/user/index.ts
Expand Up @@ -76,8 +76,10 @@ export default [
}
if (!hasUser) {
return {
code: 500,
message: '账号或密码错误'
data: {
code: 500,
message: '账号或密码错误'
}
}
}
}
Expand Down

0 comments on commit 7582e4d

Please sign in to comment.