fix: import @nocobase/utils/client
This commit is contained in:
parent
2c688dba43
commit
4a26b9b208
@ -1,4 +1,4 @@
|
||||
import { LoadingOutlined } from '@ant-design/icons';
|
||||
import { DisconnectOutlined, LoadingOutlined } from '@ant-design/icons';
|
||||
import { css } from '@emotion/css';
|
||||
import { observer } from '@formily/reactive-react';
|
||||
import { Button, Modal, Result, Spin } from 'antd';
|
||||
@ -54,8 +54,9 @@ const getProps = (app: Application) => {
|
||||
if (app.ws.serverDown) {
|
||||
return {
|
||||
status: 'error',
|
||||
title: 'App error',
|
||||
subTitle: 'The server is down',
|
||||
icon: <DisconnectOutlined />,
|
||||
title: "You're offline",
|
||||
subTitle: 'Please check the server status or network connection status',
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { str2moment } from '@nocobase/utils';
|
||||
import { str2moment } from '@nocobase/utils/client';
|
||||
import dayjs from 'dayjs';
|
||||
import { moment2str } from '../util';
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Field } from '@formily/core';
|
||||
import { evaluators } from '@nocobase/evaluators/client';
|
||||
import { uid } from '@nocobase/utils';
|
||||
import { uid } from '@nocobase/utils/client';
|
||||
import _, { last } from 'lodash';
|
||||
import { ActionType } from '../../../schema-settings/LinkageRules/type';
|
||||
import { VariableOption, VariablesContextType } from '../../../variables/types';
|
||||
|
Loading…
Reference in New Issue
Block a user