优化登录界面的接口调用
This commit is contained in:
@@ -84,7 +84,7 @@ const fileSizeLimit = (params)=>getAction("/systemConfig/fileSizeLimit",params);
|
|||||||
//平台参数
|
//平台参数
|
||||||
const addPlatformConfig = (params)=>postAction("/platformConfig/add",params);
|
const addPlatformConfig = (params)=>postAction("/platformConfig/add",params);
|
||||||
const editPlatformConfig = (params)=>putAction("/platformConfig/update",params);
|
const editPlatformConfig = (params)=>putAction("/platformConfig/update",params);
|
||||||
const getPlatformConfigByKey = (params)=>getAction("/platformConfig/getPlatformConfigByKey",params);
|
const getPlatformConfigByKey = (params)=>getAction("/platformConfig/getInfoByKey",params);
|
||||||
//用户|角色|模块关系
|
//用户|角色|模块关系
|
||||||
const addUserBusiness = (params)=>postAction("/userBusiness/add",params);
|
const addUserBusiness = (params)=>postAction("/userBusiness/add",params);
|
||||||
const editUserBusiness = (params)=>putAction("/userBusiness/update",params);
|
const editUserBusiness = (params)=>putAction("/userBusiness/update",params);
|
||||||
|
|||||||
@@ -69,7 +69,6 @@
|
|||||||
import { mapActions } from "vuex"
|
import { mapActions } from "vuex"
|
||||||
import { timeFix } from "@/utils/util"
|
import { timeFix } from "@/utils/util"
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import {getPlatformConfigByKey } from '@/api/api'
|
|
||||||
import { ACCESS_TOKEN ,ENCRYPTED_STRING} from "@/store/mutation-types"
|
import { ACCESS_TOKEN ,ENCRYPTED_STRING} from "@/store/mutation-types"
|
||||||
import { putAction,postAction,getAction } from '@/api/manage'
|
import { putAction,postAction,getAction } from '@/api/manage'
|
||||||
import { encryption , getEncryptedString } from '@/utils/encryption/aesEncrypt'
|
import { encryption , getEncryptedString } from '@/utils/encryption/aesEncrypt'
|
||||||
@@ -270,10 +269,8 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getRegisterFlag(){
|
getRegisterFlag(){
|
||||||
getPlatformConfigByKey( {"platformKey": "register_flag"}).then((res)=>{
|
getAction('/platformConfig/getPlatform/registerFlag').then((res) => {
|
||||||
if(res && res.code == 200) {
|
this.registerFlag = res + ''
|
||||||
this.registerFlag = res.data.platformValue
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//获取密码加密规则
|
//获取密码加密规则
|
||||||
|
|||||||
Reference in New Issue
Block a user