更改了小程序生命周期中的小问题

This commit is contained in:
Xu Chang 2024-06-20 18:38:37 +08:00
parent 64fe94b972
commit c354998fb8
9 changed files with 6 additions and 13 deletions

View File

@ -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) {

View File

@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useMemo } from 'react';
import { Routes, Route, Outlet, useLocation } from 'react-router-dom';
import Loading from '../Loading';

View File

@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import ReactDOM from 'react-dom/client';
import { createBrowserHistory } from 'history';

View File

@ -813,10 +813,6 @@ function createComponent(option, features) {
else {
this.reRender();
}
if (this.lifetime === 'ready') {
// ready已经调过但是oakFullpath尚未置好在这里再调一次
ready && ready();
}
});
}
else if (!this.oakOption.entity) {

View File

@ -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"));

View File

@ -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();

View File

@ -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';

View File

@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import ReactDOM from 'react-dom/client';
import { createBrowserHistory } from 'history';

View File

@ -1,3 +1,4 @@
// @ts-nocheck
import { BrowserRouterProps } from 'react-router-dom';
export interface IBrowserRouterProps extends BrowserRouterProps {