mirror of
https://gitee.com/anji-plus/report.git
synced 2026-04-01 10:08:36 +08:00
登录
This commit is contained in:
@@ -17,7 +17,7 @@ service.interceptors.request.use(
|
||||
config => {
|
||||
// 在发送请求之前做些什么
|
||||
var token = getItem('token');
|
||||
config.data = signUtil.sign(token, deepClone(config.data));
|
||||
config = signUtil.sign(token, deepClone(config));
|
||||
// console.log(config, 'config')
|
||||
return config
|
||||
},
|
||||
|
||||
@@ -12,13 +12,13 @@ import request from '@/utils/request'
|
||||
* type参数 类型 String
|
||||
* type参数 格式 'type'
|
||||
*/
|
||||
export function getDictList(type) {
|
||||
export function getDictList (type) {
|
||||
return request({
|
||||
url: `/gaeaDict/select/${type}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
export function getDictCodes(project) {
|
||||
export function getDictCodes (project) {
|
||||
return request({
|
||||
url: `/gaeaDict/selectAll/${project}`,
|
||||
method: 'get',
|
||||
@@ -30,7 +30,7 @@ export function getDictCodes(project) {
|
||||
* typeList参数 类型 Array
|
||||
* typeList参数 格式 ['type1','type2',...]
|
||||
*/
|
||||
export function getMultipleDictList(typeList) {
|
||||
export function getMultipleDictList (typeList) {
|
||||
const types = typeList + ''
|
||||
return request({
|
||||
url: `/v1/dict/types`,
|
||||
@@ -44,7 +44,7 @@ export function getMultipleDictList(typeList) {
|
||||
* typeList参数 类型 Array
|
||||
* typeList参数 格式 ['type1','type2',...]
|
||||
*/
|
||||
export function getBaseDataList(typeList) {
|
||||
export function getBaseDataList (typeList) {
|
||||
const types = typeList + ''
|
||||
return request({
|
||||
url: `/v1/master/types`,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import request from './axios'
|
||||
|
||||
export function login (data) {
|
||||
console.log(data)
|
||||
return request({
|
||||
url: '/login',
|
||||
method: 'post',
|
||||
|
||||
Reference in New Issue
Block a user