摘要: const { createProxyMiddleware } = require('http-proxy-middleware'); module.exports = (app) => { app.use( createProxyMiddleware('/postgrest', { target: 阅读全文
posted @ 2023-09-09 20:00 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: delete from t_prod_step tps delete from t_base_style_materiel tps delete from t_prod_proc_solution tps delete from t_prod_style tps delete from t_prod 阅读全文
posted @ 2023-09-09 19:59 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: import { useState, useEffect } from 'react'; import { useDataProvider } from 'react-admin'; import { Loading, Error } from './MyComponents'; const Use 阅读全文
posted @ 2023-09-08 08:55 前端导师歌谣 阅读(7) 评论(0) 推荐(0)
摘要: <Stack direction="row" spacing={2}> <SaveButton sx={{ height: "36px", mt: '9px', mj: 2 }} type='button' mutationOptions={{ onSuccess: (params: any) => 阅读全文
posted @ 2023-09-08 08:54 前端导师歌谣 阅读(7) 评论(0) 推荐(0)
摘要: tablist需要有有默认值 阅读全文
posted @ 2023-09-08 08:54 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: <SaveButton sx={{ height: "36px", mt: '9px', mj: 2 }} type='button' mutationOptions={{ onSuccess: (params:any) => { update('t_prod_step', { id: params 阅读全文
posted @ 2023-09-08 08:53 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: <Grid container spacing={2}> <Grid item xs={3}> <TextInput variant='outlined' sx={{ mr: 1 }} source='step_no' label='编号' /> </Grid> <Grid item xs={3}> 阅读全文
posted @ 2023-09-08 08:53 前端导师歌谣 阅读(13) 评论(0) 推荐(0)
摘要: _.cloneDeep(value) value (*): 要深拷贝的值 var objects = [{ 'a': 1 }, { 'b': 2 }]; var deep = _.cloneDeep(objects); console.log(deep[0] objects[0]); // => f 阅读全文
posted @ 2023-09-08 08:53 前端导师歌谣 阅读(14) 评论(0) 推荐(0)
摘要: _.compact(array) 创建一个新数组,包含原数组中所有的非假值元素。例如false, null,0, "", undefined, 和 NaN 都是被认为是“假值” _.compact([0, 1, false, 2, '', 3]); // => [1, 2, 3] 阅读全文
posted @ 2023-09-08 08:52 前端导师歌谣 阅读(8) 评论(0) 推荐(0)
摘要: _.chunk array (Array): 需要处理的数组[size=1] (number): 每个数组区块的长度 _.chunk(['a', 'b', 'c', 'd'], 2); // => [['a', 'b'], ['c', 'd']] _.chunk(['a', 'b', 'c', 'd 阅读全文
posted @ 2023-09-08 08:52 前端导师歌谣 阅读(4) 评论(0) 推荐(0)