ywzhaiqi

Results 17 comments of ywzhaiqi

[zack24q/vue-navigation](https://github.com/zack24q/vue-navigation): 一个页面导航库,记录路由并缓存页面,像原生APP导航一样。 不知道这个怎样?

尝试了 externals,虽然大小变小了,构建速度变快了,但是手机加载变得极慢(特别是用了 antd、recharts 的 CDN)。还是要按需加载,减少手机解析 js 的时间(缓存变的不重要了)。

react-router 这个错误,临时解决方法:修改文件 `react-router\lib\getRouteParams.js` 加入 if (!route) { location.reload() return; } 这样修改后会自动刷新整个页面。

经过一段时间观察,好像不是 react-hot-loader 问题,猜测是由于缓存了造成热重载失效。

今天尝试改了下,在 `create-react-app` 的基础上,添加了 `react-hot-loader`,解决了碰到的一些问题: 1. antd 部分组件还不支持 react 16(用回 react 15) 2. `react-hot-loader` 不支持 react-router 3 的动态载入。(改为 react-router 4?) 3. webpack 2+ 不支持 import、module.exports 混用。(改为 export default、require(XXX).default) 4. antd 版本升级的一些更改

可否用 webpack 的 [Dynamic import](https://webpack.js.org/guides/code-splitting-async/)

antd 官方有个 [响应式 sidebar](https://ant.design/components/layout-cn/#components-layout-demo-responsive)。 尝试改了下,发现有错误,可能是 `antd 2.7.1` 还不支持 breakpoint

自己改了下, #41

`caddy.log` 文件吗?看了重启前的日志,好像没什么异常 ``` 2022/03/01 17:53:38 server.go:3160: http: TLS handshake error from 211.95.50.8:41080: no certificate available for '' 2022/03/01 18:16:22 server.go:3160: http: TLS handshake error from 45.146.165.37:53690: no certificate available for...

网站服务出现问题,所有网站都无法访问