优化登录界面的接口调用

This commit is contained in:
季圣华
2023-06-06 21:35:33 +08:00
parent a7280ca6e3
commit 55f1d659fe
2 changed files with 3 additions and 6 deletions

View File

@@ -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 + ''
})
},
//获取密码加密规则