@freelog/tools-lib 0.1.140 → 0.1.141
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/dist/tools-lib.cjs.development.js +6 -5
- package/dist/tools-lib.cjs.development.js.map +1 -1
- package/dist/tools-lib.cjs.production.min.js +1 -1
- package/dist/tools-lib.cjs.production.min.js.map +1 -1
- package/dist/tools-lib.esm.js +6 -5
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/i18n/I18nNext.ts +155 -154
|
@@ -3329,18 +3329,19 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3329
3329
|
|
|
3330
3330
|
_proto._fetchData = /*#__PURE__*/function () {
|
|
3331
3331
|
var _fetchData2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
3332
|
-
var res, en_US, zh_CN, _i, _Object$entries, _Object$entries$_i, key, value, result;
|
|
3332
|
+
var url, res, en_US, zh_CN, _i, _Object$entries, _Object$entries$_i, key, value, result;
|
|
3333
3333
|
|
|
3334
3334
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
3335
3335
|
while (1) {
|
|
3336
3336
|
switch (_context4.prev = _context4.next) {
|
|
3337
3337
|
case 0:
|
|
3338
|
-
|
|
3339
|
-
|
|
3338
|
+
url = window.location.origin.includes('.freelog.com') ? ossJsonUrl : ossJsonUrl_Test;
|
|
3339
|
+
_context4.next = 3;
|
|
3340
|
+
return axios.get(url + '?timestamp=' + Date.now(), {
|
|
3340
3341
|
withCredentials: false
|
|
3341
3342
|
});
|
|
3342
3343
|
|
|
3343
|
-
case
|
|
3344
|
+
case 3:
|
|
3344
3345
|
res = _context4.sent;
|
|
3345
3346
|
// console.log(res, 'data09oiw3qjelsfkdfjlsdkfjl');
|
|
3346
3347
|
en_US = {};
|
|
@@ -3369,7 +3370,7 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3369
3370
|
|
|
3370
3371
|
return _context4.abrupt("return", result);
|
|
3371
3372
|
|
|
3372
|
-
case
|
|
3373
|
+
case 10:
|
|
3373
3374
|
case "end":
|
|
3374
3375
|
return _context4.stop();
|
|
3375
3376
|
}
|