更改了小程序生命周期中的小问题
This commit is contained in:
parent
64fe94b972
commit
c354998fb8
|
|
@ -810,10 +810,6 @@ export function createComponent(option, features) {
|
|||
else {
|
||||
this.reRender();
|
||||
}
|
||||
if (this.lifetime === 'ready') {
|
||||
// ready已经调过但是oakFullpath尚未置好,在这里再调一次
|
||||
ready && ready();
|
||||
}
|
||||
});
|
||||
}
|
||||
else if (!this.oakOption.entity) {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// @ts-nocheck
|
||||
import React, { useMemo } from 'react';
|
||||
import { Routes, Route, Outlet, useLocation } from 'react-router-dom';
|
||||
import Loading from '../Loading';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// @ts-nocheck
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import { createBrowserHistory } from 'history';
|
||||
|
|
|
|||
|
|
@ -813,10 +813,6 @@ function createComponent(option, features) {
|
|||
else {
|
||||
this.reRender();
|
||||
}
|
||||
if (this.lifetime === 'ready') {
|
||||
// ready已经调过但是oakFullpath尚未置好,在这里再调一次
|
||||
ready && ready();
|
||||
}
|
||||
});
|
||||
}
|
||||
else if (!this.oakOption.entity) {
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
const tslib_1 = require("tslib");
|
||||
const react_1 = require("react");
|
||||
const jsx_runtime_1 = require("react/jsx-runtime");
|
||||
// @ts-nocheck
|
||||
const react_2 = tslib_1.__importStar(require("react"));
|
||||
const react_router_dom_1 = require("react-router-dom");
|
||||
const Loading_1 = tslib_1.__importDefault(require("../Loading"));
|
||||
|
|
|
|||
|
|
@ -1133,11 +1133,6 @@ export function createComponent<
|
|||
} else {
|
||||
this.reRender();
|
||||
}
|
||||
|
||||
if (this.lifetime === 'ready') {
|
||||
// ready已经调过但是oakFullpath尚未置好,在这里再调一次
|
||||
ready && ready();
|
||||
}
|
||||
});
|
||||
} else if (!this.oakOption.entity) {
|
||||
this.reRender();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// @ts-nocheck
|
||||
import React, { useMemo } from 'react';
|
||||
import { Routes, Route, Outlet, useLocation } from 'react-router-dom';
|
||||
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/base-app-domain';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// @ts-nocheck
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import { createBrowserHistory } from 'history';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// @ts-nocheck
|
||||
import { BrowserRouterProps } from 'react-router-dom';
|
||||
|
||||
export interface IBrowserRouterProps extends BrowserRouterProps {
|
||||
|
|
|
|||
Loading…
Reference in New Issue