-
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.
Merge pull request #2 from sdmu-gaoqi/dev
Dev
- Loading branch information
Showing
36 changed files
with
7,997 additions
and
5,862 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,3 +1,8 @@ | ||
{ | ||
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"] | ||
"recommendations": [ | ||
"Vue.volar", | ||
"Vue.vscode-typescript-vue-plugin", | ||
"wa.wa-language-tip", | ||
"wa.wa-menus" | ||
] | ||
} |
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,8 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": false, | ||
"source.fixAll.stylelint": false | ||
}, | ||
"editor.formatOnSave": true, | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} |
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,43 @@ | ||
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: 'get', | ||
timeout: 1000, | ||
response: ({ data }: any) => { | ||
console.log('登录请求数据 =>', data) | ||
return { | ||
code: 0, | ||
data: ['perm-1'] | ||
} | ||
} | ||
}, | ||
{ | ||
url: '/api/logout', | ||
method: 'get', | ||
timeout: 1000, | ||
response: () => { | ||
return { | ||
code: 0 | ||
} | ||
} | ||
} | ||
] | ||
|
||
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.