@freelog/tools-lib 0.1.157 → 0.1.158
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 +2 -2
- 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 +2 -2
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +67 -67
- package/src/service-API/presentables.ts +293 -293
- package/src/utils/axios.ts +1 -1
- package/src/utils/format.ts +1 -1
- package/src/utils/tools.ts +102 -102
package/dist/tools-lib.esm.js
CHANGED
|
@@ -44,7 +44,7 @@ function formatDateTime(date, showTime) {
|
|
|
44
44
|
*/
|
|
45
45
|
|
|
46
46
|
function completeUrlByDomain(domain) {
|
|
47
|
-
var origin = "
|
|
47
|
+
var origin = "https://" + domain + ".testfreelog.com";
|
|
48
48
|
|
|
49
49
|
if (window.location.origin.includes('.freelog.com')) {
|
|
50
50
|
origin = "https://" + domain + ".freelog.com";
|
|
@@ -3211,7 +3211,7 @@ if (window.location.hostname.includes('.com')) {
|
|
|
3211
3211
|
// apiHost = `${window.location.protocol}//qi.${(window.location.host.match(/(?<=\.).*/) || [''])[0]}`;
|
|
3212
3212
|
// apiHost = window.location.origin.replace('console', 'qi');
|
|
3213
3213
|
axios.defaults.withCredentials = true;
|
|
3214
|
-
axios.defaults.baseURL = /*#__PURE__*/completeUrlByDomain('
|
|
3214
|
+
axios.defaults.baseURL = /*#__PURE__*/completeUrlByDomain('api');
|
|
3215
3215
|
}
|
|
3216
3216
|
/**
|
|
3217
3217
|
* 异常处理程序
|