Browse Source

feat: save

gemercheung 1 năm trước cách đây
mục cha
commit
feeda80104
1 tập tin đã thay đổi với 8 bổ sung2 xóa
  1. 8 2
      packages/qjkankan-editor/src/utils/request.js

+ 8 - 2
packages/qjkankan-editor/src/utils/request.js

@@ -134,7 +134,10 @@ export function statusCodesHandler(result, callback) {
     $alert({
       content: i18n.t("tips_code.FAILURE_3011"),
       ok: () => {
-        window.location.href = "./material.html";
+        const lang = browser.urlQueryValue("lang");
+        location.replace(
+          `./material.html?lang=${lang}#/works`
+        );
       },
     });
     return false;
@@ -144,7 +147,10 @@ export function statusCodesHandler(result, callback) {
     $alert({
       content: i18n.t("tips_code.FAILURE_3011"),
       ok: () => {
-        window.location.href = "./material.html";
+        const lang = browser.urlQueryValue("lang");
+        location.replace(
+          `./material.html?lang=${lang}#/works`
+        );
       },
     });
     return false;