yanzili 3 years ago
parent fe0af58465
commit b22d8d095e

@ -17,7 +17,7 @@ service.interceptors.request.use(
config => { config => {
// 在发送请求之前做些什么 // 在发送请求之前做些什么
var token = getItem('token'); var token = getItem('token');
config.data = signUtil.sign(token, deepClone(config.data)); config = signUtil.sign(token, deepClone(config));
// console.log(config, 'config') // console.log(config, 'config')
return config return config
}, },

@ -12,13 +12,13 @@ import request from '@/utils/request'
* type参数 类型 String * type参数 类型 String
* type参数 格式 'type' * type参数 格式 'type'
*/ */
export function getDictList(type) { export function getDictList (type) {
return request({ return request({
url: `/gaeaDict/select/${type}`, url: `/gaeaDict/select/${type}`,
method: 'get', method: 'get',
}) })
} }
export function getDictCodes(project) { export function getDictCodes (project) {
return request({ return request({
url: `/gaeaDict/selectAll/${project}`, url: `/gaeaDict/selectAll/${project}`,
method: 'get', method: 'get',
@ -30,7 +30,7 @@ export function getDictCodes(project) {
* typeList参数 类型 Array * typeList参数 类型 Array
* typeList参数 格式 ['type1','type2',...] * typeList参数 格式 ['type1','type2',...]
*/ */
export function getMultipleDictList(typeList) { export function getMultipleDictList (typeList) {
const types = typeList + '' const types = typeList + ''
return request({ return request({
url: `/v1/dict/types`, url: `/v1/dict/types`,
@ -44,7 +44,7 @@ export function getMultipleDictList(typeList) {
* typeList参数 类型 Array * typeList参数 类型 Array
* typeList参数 格式 ['type1','type2',...] * typeList参数 格式 ['type1','type2',...]
*/ */
export function getBaseDataList(typeList) { export function getBaseDataList (typeList) {
const types = typeList + '' const types = typeList + ''
return request({ return request({
url: `/v1/master/types`, url: `/v1/master/types`,

@ -1,6 +1,7 @@
import request from './axios' import request from './axios'
export function login (data) { export function login (data) {
console.log(data)
return request({ return request({
url: '/login', url: '/login',
method: 'post', method: 'post',

@ -18,7 +18,7 @@
left: 0; left: 0;
z-index: 1001; z-index: 1001;
overflow: hidden; overflow: hidden;
box-shadow: 1px 1px 4px #e6e6e6; box-shadow: 1px 1px 4px #e7eeff;
//reset element-ui css //reset element-ui css
.horizontal-collapse-transition { .horizontal-collapse-transition {
transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out; transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;

@ -227,7 +227,6 @@ export default {
} }
const { code, data } = await login(obj) const { code, data } = await login(obj)
if (code != '200') return if (code != '200') return
console.log(code, data)
setItem("token", data.token) setItem("token", data.token)
this.loading = false this.loading = false
// cookie,15 // cookie,15

Loading…
Cancel
Save