Merge branch 'dev' of codeup.aliyun.com:61c14a7efa282c88e103c23f/oak-general-business into dev

This commit is contained in:
Xu Chang 2023-01-31 19:54:10 +08:00
commit 73744c57a8
2 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ var Application = /** @class */ (function (_super) {
})]; })];
case 1: case 1:
data = (_a.sent()).data; data = (_a.sent()).data;
(0, assert_1.assert)(data.length === 1, "applicationId".concat(this.applicationId, "\u6CA1\u6709\u53D6\u5230\u6709\u6548\u6570\u636E")); (0, assert_1.assert)(data.length === 1, "refresh:applicationId".concat(this.applicationId, "\u6CA1\u6709\u53D6\u5230\u6709\u6548\u6570\u636E"));
this.application = data[0]; this.application = data[0];
if (this.application.type !== this.type) { if (this.application.type !== this.type) {
this.storage.remove('application:applicationId'); this.storage.remove('application:applicationId');
@ -47,7 +47,7 @@ var Application = /** @class */ (function (_super) {
id: this.applicationId, id: this.applicationId,
}, },
}); });
(0, assert_1.assert)(data.length === 1, "applicationId".concat(this.applicationId, "\u6CA1\u6709\u53D6\u5230\u6709\u6548\u6570\u636E")); (0, assert_1.assert)(data.length === 1, "cache:applicationId".concat(this.applicationId, "\u6CA1\u6709\u53D6\u5230\u6709\u6548\u6570\u636E"));
this.application = data[0]; this.application = data[0];
}; };
Application.prototype.loadApplicationInfo = function (type, domain) { Application.prototype.loadApplicationInfo = function (type, domain) {

View File

@ -49,7 +49,7 @@ export class Application<
}); });
assert( assert(
data.length === 1, data.length === 1,
`applicationId${this.applicationId}没有取到有效数据` `refresh:applicationId${this.applicationId}没有取到有效数据`
); );
this.application = data[0]; this.application = data[0];
if (this.application.type !== this.type) { if (this.application.type !== this.type) {
@ -66,7 +66,7 @@ export class Application<
} as any); } as any);
assert( assert(
data.length === 1, data.length === 1,
`applicationId${this.applicationId}没有取到有效数据` `cache:applicationId${this.applicationId}没有取到有效数据`
); );
this.application = data[0]; this.application = data[0];
} }