This commit is contained in:
bb_pan 2025-04-25 15:52:47 +08:00
parent 894cdc8417
commit eb947c4b72
3 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ import { getConfig } from '@/api/login'
export function getConfigApi() {
getConfig()
.then((response) => {
console.log(response)
// console.log(response)
localStorage.setItem('systemConfig', JSON.stringify(response.data))
})
.catch((error) => {

View File

@ -64,7 +64,7 @@ service.interceptors.request.use(config => {
}
let contentType = config.headers['Content-Type']
// console.log('🚀 ~ contentType:', contentType, requestObj.data)
console.log('🚀 ~ 要加密:', contentType.includes('application/json'), typeof requestObj.data)
// console.log('🚀 ~ 要加密:', contentType.includes('application/json'), typeof requestObj.data)
if (contentType.includes('application/json') && typeof requestObj.data !== 'undefined') {
// 加密数据
if (systemConfig.requestConfig.encryptRequest && encryptRequest) {

View File

@ -528,7 +528,7 @@ export default {
localStorage.setItem('username', username)
localStorage.setItem('pw', password)
const res = await checkPasswordStatus()
console.log('🚀 ~ .then ~ res:', res)
// console.log('🚀 ~ .then ~ res:', res)
this.$router.push({ path: '/' }).catch(() => {})
})
.catch(() => {