From 55f1d659fe67ecea3f297c31dbd32b3e518f0f5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Tue, 6 Jun 2023 21:35:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=99=BB=E5=BD=95=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E6=8E=A5=E5=8F=A3=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jshERP-web/src/api/api.js | 2 +- jshERP-web/src/views/user/Login.vue | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/jshERP-web/src/api/api.js b/jshERP-web/src/api/api.js index d1cd3fcf..1419e479 100644 --- a/jshERP-web/src/api/api.js +++ b/jshERP-web/src/api/api.js @@ -84,7 +84,7 @@ const fileSizeLimit = (params)=>getAction("/systemConfig/fileSizeLimit",params); //平台参数 const addPlatformConfig = (params)=>postAction("/platformConfig/add",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 editUserBusiness = (params)=>putAction("/userBusiness/update",params); diff --git a/jshERP-web/src/views/user/Login.vue b/jshERP-web/src/views/user/Login.vue index 7a519d98..e59f8e84 100644 --- a/jshERP-web/src/views/user/Login.vue +++ b/jshERP-web/src/views/user/Login.vue @@ -69,7 +69,6 @@ import { mapActions } from "vuex" import { timeFix } from "@/utils/util" import Vue from 'vue' - import {getPlatformConfigByKey } from '@/api/api' import { ACCESS_TOKEN ,ENCRYPTED_STRING} from "@/store/mutation-types" import { putAction,postAction,getAction } from '@/api/manage' import { encryption , getEncryptedString } from '@/utils/encryption/aesEncrypt' @@ -270,10 +269,8 @@ }) }, getRegisterFlag(){ - getPlatformConfigByKey( {"platformKey": "register_flag"}).then((res)=>{ - if(res && res.code == 200) { - this.registerFlag = res.data.platformValue - } + getAction('/platformConfig/getPlatform/registerFlag').then((res) => { + this.registerFlag = res + '' }) }, //获取密码加密规则