Skip to content

Commit

Permalink
♻️ Refactoring code. 重构验证码,支持单体版本
Browse files Browse the repository at this point in the history
  • Loading branch information
lbw committed Nov 20, 2023
1 parent cdc17f5 commit 487ddea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/login/component/password.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const imgSrc = ref('')
//获取验证码图片
const getVerifyCode = () => {
state.ruleForm.randomStr = generateUUID()
imgSrc.value = `${import.meta.env.VITE_API_URL}/code?randomStr=${state.ruleForm.randomStr}`
imgSrc.value = `${import.meta.env.VITE_API_URL}${import.meta.env.VITE_IS_MICRO == 'false' ? '/admin' : ''}/code/image?randomStr=${state.ruleForm.randomStr}`
}
// 账号密码登录
Expand Down

0 comments on commit 487ddea

Please sign in to comment.