编译和依赖中的小错误
This commit is contained in:
parent
807321ac2f
commit
9cfd61aab8
|
|
@ -2,9 +2,9 @@
|
|||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.FrontendRuntimeContext = void 0;
|
||||
var tslib_1 = require("tslib");
|
||||
var assert_1 = tslib_1.__importDefault(require("assert"));
|
||||
var SyncRowStore_1 = require("oak-domain/lib/store/SyncRowStore");
|
||||
var Exception_1 = require("../types/Exception");
|
||||
var console_1 = require("console");
|
||||
var types_1 = require("oak-domain/lib/types");
|
||||
var FrontendRuntimeContext = /** @class */ (function (_super) {
|
||||
tslib_1.__extends(FrontendRuntimeContext, _super);
|
||||
|
|
@ -76,7 +76,7 @@ var FrontendRuntimeContext = /** @class */ (function (_super) {
|
|||
throw new Exception_1.OakTokenExpiredException('您的登录状态有异常,请重新登录 ');
|
||||
}
|
||||
else {
|
||||
(0, console_1.assert)(userState === 'normal');
|
||||
(0, assert_1.default)(userState === 'normal');
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,13 +28,13 @@
|
|||
"uuid": "^8.3.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": ">=18.2.0",
|
||||
"react-dom": ">=18.1.0",
|
||||
"react-router-dom": "^6.3.0",
|
||||
"@ant-design/icons": "^4.7.0",
|
||||
"antd": "^5.0.2",
|
||||
"antd-mobile": "^5.24.1",
|
||||
"antd-mobile-icons": "^0.3.0"
|
||||
"antd-mobile-icons": "^0.3.0",
|
||||
"react": ">=18.2.0",
|
||||
"react-dom": ">=18.1.0",
|
||||
"react-router-dom": "^6.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ant-design/icons": "^4.7.0",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
import assert from 'assert';
|
||||
import { EntityDict } from '../general-app-domain';
|
||||
|
||||
import { RuntimeContext } from './RuntimeContext';
|
||||
|
|
@ -10,7 +10,6 @@ import { SyncContext, SyncRowStore } from 'oak-domain/lib/store/SyncRowStore';
|
|||
import { AsyncContext } from 'oak-domain/lib/store/AsyncRowStore';
|
||||
import { BackendRuntimeContext } from './BackendRuntimeContext';
|
||||
import { OakTokenExpiredException, OakUserDisabledException } from '../types/Exception';
|
||||
import { assert } from 'console';
|
||||
import { OakUnloggedInException } from 'oak-domain/lib/types';
|
||||
|
||||
type AspectDict<ED extends EntityDict, Cxt extends BackendRuntimeContext<ED>> = GeneralAspectDict<ED, Cxt> & CommonAspectDict<ED, Cxt>;
|
||||
|
|
|
|||
Loading…
Reference in New Issue