auth.js 263 B

123456789101112
  1. /*
  2. * @Description:
  3. * @Author: 欧阳承珺
  4. * @LastEditors: 欧阳承珺
  5. * @Date: 2022-11-07 17:12:06
  6. * @LastEditTime: 2022-11-14 11:48:15
  7. */
  8. export default function ({redirect, store}) {
  9. if (store?.state?.token === '' ) {
  10. return redirect('/');
  11. }
  12. }