Skip to content

Commit

Permalink
fix(mock): 🐛 update type RequestParams reference error
Browse files Browse the repository at this point in the history
  • Loading branch information
G committed May 14, 2024
1 parent 0de65d6 commit cd7cc86
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/admin/mock/data/user.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { USER_LIST } from '../_assets';
import { getRequestToken, type RequestParams, resultError, resultSuccess } from '../_utils';
import { getRequestToken, resultError, resultSuccess } from '../_utils';

import type { RequestParams } from '../_utils';
import type { MockMethod } from 'vite-plugin-mock';

/**
Expand Down Expand Up @@ -66,7 +67,7 @@ export default [
url: '/api/logout',
timeout: 200,
method: 'get',
response: (request: RequestParams) => {
response: () => {
return resultSuccess(undefined, { message: 'Token has been destroyed!' });
},
},
Expand Down

0 comments on commit cd7cc86

Please sign in to comment.