随笔分类 - 前端歌谣-工作篇-项目实战
摘要:const [visible, setVisable] = useState<boolean>(false) const [values, setValues] = useState(initValues); const [orderColumns, setOrderColumns] = useSt
阅读全文
摘要:传入 useMemo 的函数会在渲染期间执行。请不要在这个函数内部执行不应该在渲染期间内执行的操作 useMemo<Array<ISearchItem>>(() => { return [ ]; }, []);
阅读全文
摘要:const [form] = Form.useForm() form.setFieldsValue({ customerCode: data.customerCode, orderCode: data.orderCode, count: data.count })
阅读全文
摘要:interface geyao{ name?: number age?: string sex?: string orderCode?: string planDate?: string size_name?: string hello?: string status?: string }
阅读全文
摘要:声明顺序 1const 2let 3usestate 4useeffect 5普通函数 只是自己这样子声明
阅读全文
摘要:git history gitLens
阅读全文
摘要:// 歌谣:当变量发生变化的时候执行该副作用 useEffect(()=>{ let temp = getToken(); if(temp !== undefined){ setCookie(temp); setLogined(true); }else{ console.log('setLogine
阅读全文
摘要:export interface IColumns { name: string; age: number; title: string; } 定义简单的接口
阅读全文
摘要:const [xxx] = useQueryTableColumnsMutation(); useEffect(() => { queryTableColumns(“xxx”) .unwrap() .then((response) => { }); 当接口请求拼接的时候要用模板字符串懂了吧
阅读全文
摘要:query: (data) => { return { url: `xxx`, method: xxx, data: xxx } } 参数的话可以从query进行一个传入操作 data可以传入到body
阅读全文
摘要:找到node中npm文件找到那2个文件里面的prefix -g替换为prefix --location=global
阅读全文
摘要:简记:在npm后面加入后缀--legacy-peer-deps
阅读全文