-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4982c10
commit 2c05a0b
Showing
20 changed files
with
7,769 additions
and
5,836 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
NODE_ENV: development | ||
VITE_BASE_REQUEST: https: //store-operations-admin-dev.yuque.com | ||
VITE_BASE_REQUEST: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
NODE_ENV: production | ||
VITE_BASE_REQUEST: https: //store-operations-admin.yuque.com | ||
VITE_BASE_REQUEST: https://store-operations-admin.yuque.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
NODE_ENV: production | ||
VITE_BASE_REQUEST: https: //store-operations-admin-staging.yuque.com | ||
VITE_BASE_REQUEST: https://store-operations-admin-staging.yuque.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
NODE_ENV: production | ||
VITE_BASE_REQUEST: https: //store-operations-admin-test.yuque.com | ||
VITE_BASE_REQUEST: https://store-operations-admin-test.yuque.com |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { MockMethod } from 'vite-plugin-mock' | ||
|
||
// @ts-ignore | ||
const testMock: MockMethod = [ | ||
{ | ||
url: '/api/login', | ||
method: 'post', | ||
timeout: 1000, | ||
response: ({ data }: any) => { | ||
console.log('登录请求数据 =>', data) | ||
return { | ||
code: 0, | ||
data: { | ||
token: 'thisIsToken' | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
url: '/api/perm', | ||
method: 'post', | ||
timeout: 1000, | ||
response: ({ data }: any) => { | ||
console.log('登录请求数据 =>', data) | ||
return { | ||
code: 0, | ||
data: ['perm-1'] | ||
} | ||
} | ||
} | ||
] | ||
|
||
export default testMock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.