hifun-tools 1.3.3 → 1.3.4
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/init/index.js +2 -4
- package/package.json +1 -1
package/dist/init/index.js
CHANGED
|
@@ -5,8 +5,9 @@ class InitCls {
|
|
|
5
5
|
domainBaseUrl = "";
|
|
6
6
|
tenantConfig = null;
|
|
7
7
|
initialized = false;
|
|
8
|
-
tenant =
|
|
8
|
+
tenant = "";
|
|
9
9
|
getBaseUrl() {
|
|
10
|
+
console.log("this.domainBaseUrl", this.domainBaseUrl);
|
|
10
11
|
if (!this.domainBaseUrl) {
|
|
11
12
|
throw new Error("域名尚未初始化或初始化失败");
|
|
12
13
|
}
|
|
@@ -21,9 +22,6 @@ class InitCls {
|
|
|
21
22
|
}
|
|
22
23
|
/** 获取租户名 */
|
|
23
24
|
getTenant() {
|
|
24
|
-
if (!this.initialized || !this.tenant) {
|
|
25
|
-
throw new Error("租户尚未初始化或初始化失败getTenant");
|
|
26
|
-
}
|
|
27
25
|
return this.tenant;
|
|
28
26
|
}
|
|
29
27
|
getImgPath(imgName) {
|