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 { 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',
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -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';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -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';
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user