修复拦截器和验证小BUG
This commit is contained in:
parent
1bca3653b1
commit
a2c73e046e
@ -16,6 +16,7 @@ public class WebConfiguration implements WebMvcConfigurer {
|
||||
public void addInterceptors(InterceptorRegistry registry) {
|
||||
registry
|
||||
.addInterceptor(interceptor)
|
||||
.addPathPatterns("/**");
|
||||
.addPathPatterns("/**")
|
||||
.excludePathPatterns("/api/auth/**");
|
||||
}
|
||||
}
|
||||
|
@ -130,12 +130,15 @@ const onValidate = (prop, isValid) => {
|
||||
}
|
||||
|
||||
const validateEmail = () => {
|
||||
coldTime.value = 60
|
||||
post('/api/auth/valid-reset-email', {
|
||||
email: form.email
|
||||
}, (message) => {
|
||||
ElMessage.success(message)
|
||||
coldTime.value = 60
|
||||
setInterval(() => coldTime.value--, 1000)
|
||||
}, (message) => {
|
||||
ElMessage.warning(message)
|
||||
coldTime.value = 0
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -147,12 +147,15 @@ const register = () => {
|
||||
}
|
||||
|
||||
const validateEmail = () => {
|
||||
coldTime.value = 60
|
||||
post('/api/auth/valid-register-email', {
|
||||
email: form.email
|
||||
}, (message) => {
|
||||
ElMessage.success(message)
|
||||
coldTime.value = 60
|
||||
setInterval(() => coldTime.value--, 1000)
|
||||
}, (message) => {
|
||||
ElMessage.warning(message)
|
||||
coldTime.value = 0
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {ref, computed, reactive} from 'vue'
|
||||
import {reactive} from 'vue'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export const useStore = defineStore('store', () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user