@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
|
@@ -50,7 +50,7 @@ function formatDateTime(date, showTime) {
|
|
|
50
50
|
*/
|
|
51
51
|
|
|
52
52
|
function completeUrlByDomain(domain) {
|
|
53
|
-
var origin = "
|
|
53
|
+
var origin = "https://" + domain + ".testfreelog.com";
|
|
54
54
|
|
|
55
55
|
if (window.location.origin.includes('.freelog.com')) {
|
|
56
56
|
origin = "https://" + domain + ".freelog.com";
|
|
@@ -3217,7 +3217,7 @@ if (window.location.hostname.includes('.com')) {
|
|
|
3217
3217
|
// apiHost = `${window.location.protocol}//qi.${(window.location.host.match(/(?<=\.).*/) || [''])[0]}`;
|
|
3218
3218
|
// apiHost = window.location.origin.replace('console', 'qi');
|
|
3219
3219
|
axios.defaults.withCredentials = true;
|
|
3220
|
-
axios.defaults.baseURL = /*#__PURE__*/completeUrlByDomain('
|
|
3220
|
+
axios.defaults.baseURL = /*#__PURE__*/completeUrlByDomain('api');
|
|
3221
3221
|
}
|
|
3222
3222
|
/**
|
|
3223
3223
|
* 异常处理程序
|