@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.
- package/lib/web/frontend/app.js +2 -2
- package/lib/web/frontend/login.js +1 -1
- package/lib/web/frontend/shadcn.html +83 -84
- package/lib/web/server.js +28 -11
- package/package.json +4 -3
package/lib/web/frontend/app.js
CHANGED
|
@@ -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) {
|