-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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 #13 from PanJiaChen/feature/refactor
Feature/refactor
- Loading branch information
Showing
57 changed files
with
754 additions
and
884 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,30 +1,27 @@ | ||
import fetch from '@/utils/fetch'; | ||
import fetch from '@/utils/fetch' | ||
|
||
export function login(email, password) { | ||
export function login(username, password) { | ||
return fetch({ | ||
url: '/user/login', | ||
method: 'post', | ||
data: { | ||
email, | ||
username, | ||
password | ||
} | ||
}); | ||
}) | ||
} | ||
|
||
export function getInfo(token) { | ||
return fetch({ | ||
url: '/user/info', | ||
method: 'get', | ||
params: { token } | ||
}); | ||
}) | ||
} | ||
|
||
export function logout() { | ||
return fetch({ | ||
url: '/user/logout', | ||
method: 'post' | ||
}); | ||
}) | ||
} | ||
|
||
|
||
|
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,11 +1,9 @@ | ||
import fetch from '@/utils/fetch'; | ||
import fetch from '@/utils/fetch' | ||
|
||
export function getList(params) { | ||
return fetch({ | ||
url: '/table/list', | ||
method: 'get', | ||
params | ||
}); | ||
}) | ||
} | ||
|
||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import Vue from 'vue' | ||
import IconSvg from '@/components/Icon-svg'// svg组件 | ||
|
||
// register globally | ||
Vue.component('icon-svg', IconSvg) | ||
|
||
const requireAll = requireContext => requireContext.keys().map(requireContext) | ||
const req = require.context('./svg', false, /\.svg$/) | ||
requireAll(req) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.