@xcanwin/manyoyo 7.0.9 → 7.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2520,7 +2520,7 @@
2520
2520
  );
2521
2521
  const response = await fetch(url, requestOptions);
2522
2522
  if (response.status === 401) {
2523
- window.location.href = '/';
2523
+ window.location.href = '/auth/login';
2524
2524
  throw new Error('未登录或登录已过期');
2525
2525
  }
2526
2526
  let data = {};
@@ -2544,7 +2544,7 @@
2544
2544
  const streamHandlers = handlers && typeof handlers === 'object' ? handlers : {};
2545
2545
  const response = await fetch(url, requestOptions);
2546
2546
  if (response.status === 401) {
2547
- window.location.href = '/';
2547
+ window.location.href = '/auth/login';
2548
2548
  throw new Error('未登录或登录已过期');
2549
2549
  }
2550
2550
  if (!response.ok) {
@@ -63,7 +63,7 @@
63
63
  if (!response.ok) {
64
64
  throw new Error(payload.error || '登录失败');
65
65
  }
66
- window.location.href = '/';
66
+ window.location.href = '/legacy';
67
67
  } catch (e) {
68
68
  errorNode.textContent = e.message || '登录失败';
69
69
  } finally {