Skip to content

Commit

Permalink
fix: mock 数据修复
Browse files Browse the repository at this point in the history
  • Loading branch information
hooray committed Jan 4, 2024
1 parent c943d28 commit fd2f6d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mock/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ export default defineFakeRoute([
method: 'get',
response: ({ headers }) => {
let permissions: string[] = []
if (headers.token?.indexOf('admin') === 0) {
if (headers.Token?.indexOf('admin') === 0) {
permissions = [
'permission.browse',
'permission.create',
'permission.edit',
'permission.remove',
]
}
else if (headers.token?.indexOf('test') === 0) {
else if (headers.Token?.indexOf('test') === 0) {
permissions = [
'permission.browse',
]
Expand Down

0 comments on commit fd2f6d5

Please sign in to comment.