Skip to content

Commit

Permalink
refactor: export default () 改为 export xx,以便 React fast refresh 生效
Browse files Browse the repository at this point in the history
  • Loading branch information
twinh committed Oct 31, 2022
1 parent 39c8a88 commit ed5f774
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion pages/admin/logistics-addresses/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const typeNames = {
1: '退货',
};

export default () => {
const Index = () => {
const [table] = useTable();

return (
Expand Down Expand Up @@ -71,3 +71,5 @@ export default () => {
</Page>
);
};

export default Index;
4 changes: 3 additions & 1 deletion pages/admin/logistics-addresses/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import $ from 'miaoxing';
import {FormItemSort} from '@miaoxing/admin';
import Input from '@mxjs/a-input';

export default () => {
const New = () => {
return (
<Page>
<PageActions>
Expand Down Expand Up @@ -93,3 +93,5 @@ export default () => {
</Page>
);
};

export default New;
4 changes: 3 additions & 1 deletion pages/admin/shipping-tpls/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {CEditLink, CNewBtn} from '@mxjs/a-clink';
import {Page, PageActions} from '@mxjs/a-page';
import {LinkActions} from '@mxjs/actions';

export default () => {
const Index = () => {
const [table] = useTable();

return (
Expand Down Expand Up @@ -51,3 +51,5 @@ export default () => {
</Page>
);
};

export default Index;
4 changes: 3 additions & 1 deletion pages/admin/shipping-tpls/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const NumberFormItem = (props) => {

const verticalAlignBaseline = css({verticalAlign: 'baseline'});

export default () => {
const New = () => {
const form = useRef();

// 加载区域
Expand Down Expand Up @@ -300,3 +300,5 @@ export default () => {
</Page>
);
};

export default New;

0 comments on commit ed5f774

Please sign in to comment.