跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[前端开发] 请教下 react 下处理登录,验证 token,刷新 token 有啥优雅点的方式吗。目前框架内是用到了 redux,看能不能结合对应的 authSlice 使用

发表于
  1. 直接使用 axios ,然后扩展拦截器。直接简单粗暴通过本地存储判断,但是实际写的时候会碰到需要用到 hooks 的问题,感觉写的不是很舒服。 还需要用 provider 将 axios 包裹起来使用。 或者有相关的文章代码案例瞅瞅

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.