From 8f0faa0ce279718b6080d6da583694ff12bbd4b2 Mon Sep 17 00:00:00 2001 From: eduauto Date: Wed, 13 Nov 2024 11:36:41 +0800 Subject: [PATCH] autoUpdataFile --- index.html | 2 +- js/public.js | 2 -- ...__Shixuns__Detail__Challenges__index.153c47e6.async.js | 3 ++- umi.7047649f.js => umi.0b43b856.js | 8 ++++---- 4 files changed, 7 insertions(+), 8 deletions(-) rename p__Shixuns__Detail__Challenges__index.d269e81f.async.js => p__Shixuns__Detail__Challenges__index.153c47e6.async.js (99%) rename umi.7047649f.js => umi.0b43b856.js (99%) diff --git a/index.html b/index.html index e66ae1f50d..3c8f6c3e9e 100644 --- a/index.html +++ b/index.html @@ -26,7 +26,7 @@ display: block !important; } - + \ No newline at end of file diff --git a/js/public.js b/js/public.js index a0bad70eb2..92d4e71c2b 100644 --- a/js/public.js +++ b/js/public.js @@ -280,7 +280,6 @@ try { history.pushState = function(state, title, url) { if(!isPageRefresh()){ const modifiedUrl = modifyUrl(url); - debugger originalPushState.call(history, state, title, modifiedUrl); } }; @@ -289,7 +288,6 @@ try { // if(!url) return; // if(!isPageRefresh()){ // const modifiedUrl = modifyUrl(url); - // debugger // originalReplaceState.call(history, state, title, modifiedUrl); // } // }; diff --git a/p__Shixuns__Detail__Challenges__index.d269e81f.async.js b/p__Shixuns__Detail__Challenges__index.153c47e6.async.js similarity index 99% rename from p__Shixuns__Detail__Challenges__index.d269e81f.async.js rename to p__Shixuns__Detail__Challenges__index.153c47e6.async.js index d3c93528af..db940db108 100644 --- a/p__Shixuns__Detail__Challenges__index.d269e81f.async.js +++ b/p__Shixuns__Detail__Challenges__index.153c47e6.async.js @@ -1043,6 +1043,7 @@ var Challenges = function Challenges(_ref3) { setShowReadFull = _useState2[1]; var location = (0,_umi_production_exports.useLocation)(); var shixunId = (0,_react_17_0_2_react.useRef)(''); + var params = (0,_umi_production_exports.useParams)(); var content = (0,_react_17_0_2_react.useRef)(); var _useState3 = (0,_react_17_0_2_react.useState)(), _useState4 = slicedToArray_default()(_useState3, 2), @@ -1065,7 +1066,7 @@ var Challenges = function Challenges(_ref3) { dispatch({ type: 'shixunsDetail/getChallengesData', payload: { - id: shixunId.current + id: params.id } }); }, [location.pathname]); diff --git a/umi.7047649f.js b/umi.0b43b856.js similarity index 99% rename from umi.7047649f.js rename to umi.0b43b856.js index 0ff976d670..34b2d87d91 100644 --- a/umi.7047649f.js +++ b/umi.0b43b856.js @@ -34713,7 +34713,7 @@ function _unescape(str) { var reg = /\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g; var reg2 = /\"\/api\/attachments\/|\"\/attachments\/download\//g; var reg3 = /\(\s+\/files\/uploads\/|\"\/files\/uploads\//g; - str = str.replace(reg, "(" + env/* default */.Z.API_SERVER + "/api/attachments/").replace(reg2, '"' + env/* default */.Z.API_SERVER + "/api/attachments/").replace(reg3, '"' + env/* default */.Z.API_SERVER + "/files/uploads/").replaceAll("http://video.educoder", "https://video.educoder").replaceAll("http://www.educoder.net/api", "https://data.educoder.net/api").replaceAll("https://www.educoder.net/api", "https://data.educoder.net/api").replace(/\r\n/g, "\n"); + str = str.replace(reg, "(" + env/* default */.Z.API_SERVER + "/api/attachments/").replace(reg2, '"' + env/* default */.Z.API_SERVER + "/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/api/attachments/").replace(reg3, '"' + env/* default */.Z.API_SERVER + "/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/files/uploads/").replaceAll("http://video.educoder", "https://video.educoder").replaceAll("http://www.educoder.net/api", "https://data.educoder.net/api").replaceAll("https://www.educoder.net/api", "https://data.educoder.net/api").replace(/\r\n/g, "\n"); // str = str.replace(new RegExp("(?