优化下逻辑

This commit is contained in:
2betop 2020-07-16 10:22:31 +08:00
parent 575baf1586
commit ede1173159
1 changed files with 1 additions and 5 deletions

View File

@ -954,17 +954,13 @@ export function render(
options: RenderOptions = {},
pathPrefix: string = ''
): JSX.Element {
options = {
...defaultOptions,
...options
};
const locale = props.locale || getDefaultLocale();
const translate = props.translate || makeTranslator(locale);
let store = stores[options.session || 'global'];
if (!store) {
options = {
...defaultOptions,
...options,
fetcher: options.fetcher
? wrapFetcher(options.fetcher)