fix: import @nocobase/utils/client

This commit is contained in:
chenos 2023-11-18 21:20:30 +08:00
parent 2c688dba43
commit 4a26b9b208
3 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,4 @@
import { LoadingOutlined } from '@ant-design/icons'; import { DisconnectOutlined, LoadingOutlined } from '@ant-design/icons';
import { css } from '@emotion/css'; import { css } from '@emotion/css';
import { observer } from '@formily/reactive-react'; import { observer } from '@formily/reactive-react';
import { Button, Modal, Result, Spin } from 'antd'; import { Button, Modal, Result, Spin } from 'antd';
@ -54,8 +54,9 @@ const getProps = (app: Application) => {
if (app.ws.serverDown) { if (app.ws.serverDown) {
return { return {
status: 'error', status: 'error',
title: 'App error', icon: <DisconnectOutlined />,
subTitle: 'The server is down', title: "You're offline",
subTitle: 'Please check the server status or network connection status',
}; };
} }

View File

@ -1,4 +1,4 @@
import { str2moment } from '@nocobase/utils'; import { str2moment } from '@nocobase/utils/client';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
import { moment2str } from '../util'; import { moment2str } from '../util';

View File

@ -1,6 +1,6 @@
import { Field } from '@formily/core'; import { Field } from '@formily/core';
import { evaluators } from '@nocobase/evaluators/client'; import { evaluators } from '@nocobase/evaluators/client';
import { uid } from '@nocobase/utils'; import { uid } from '@nocobase/utils/client';
import _, { last } from 'lodash'; import _, { last } from 'lodash';
import { ActionType } from '../../../schema-settings/LinkageRules/type'; import { ActionType } from '../../../schema-settings/LinkageRules/type';
import { VariableOption, VariablesContextType } from '../../../variables/types'; import { VariableOption, VariablesContextType } from '../../../variables/types';