发布前校验是否实名认证

This commit is contained in:
yml
2026-05-23 00:01:03 +08:00
parent 94edda9710
commit efb3b94286
5 changed files with 62 additions and 5 deletions
+1
View File
@@ -38,6 +38,7 @@ apiClient.interceptors.response.use(
localStorage.removeItem('access_token')
localStorage.removeItem('refresh_token')
localStorage.removeItem('user_id')
localStorage.removeItem('realname_status')
if (!window.location.pathname.startsWith('/m/login') && !window.location.pathname.startsWith('/m/register')) {
const redirect = encodeURIComponent(currentPath)