feat: 对接部分接口
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
export const useCaptcha = () => {
|
||||
const codeUrl = ref('')
|
||||
const refreshCode = () => {
|
||||
const baseUrl = import.meta.env.VITE_SERVER_BASEURL
|
||||
codeUrl.value = baseUrl + '/captcha.html?t=' + Date.now()
|
||||
}
|
||||
onMounted(() => {
|
||||
refreshCode()
|
||||
})
|
||||
return { codeUrl, refreshCode }
|
||||
}
|
||||
Reference in New Issue
Block a user