xiaohai

Results 13 comments of xiaohai

怎么将 hashHistory 改成 browserHistory 啊?

请问,怎么根据用户是否登录来进行路由的跳转啊???

![image](https://user-images.githubusercontent.com/25895105/55925840-84abec00-5c41-11e9-9976-c4b47182812f.png) 左边是自己生成的, 右边是[草料二维码](https://cli.im/text?dbcaf5ab1c1dde2f7d8f0c50af06dfe2)生成的 以下是配置信息 ```vue ``` 以下是样式 ```css .qr img { max-width: 200px; max-width: 200px; } ```

size 设置成 200 也是一样的

这个是 size 为 1200 的 草料的 size 是 260 右侧草料的 ![image](https://user-images.githubusercontent.com/25895105/56008131-b68a8480-5d0d-11e9-92a3-c72fd2146e2a.png)

在 img 标签上监听 error 事件,发生错误将 img 的 src 改为 404 图片就行

我是这样解决的, 在 img 上监听 error 时间, 失败时改写了 img.src(给了一个默认图片地址)

强烈建议在 createAPI 执行时, 支持传入函数或字符串来定义组件名称 前面是用这个插件`terser-webpack-plugin`解决的, 但是最近这个插件自动升级后, 影响到 photoswipe 的使用了(无法打开大图预览)

可以参考 echarts 的这段[代码](https://github.com/apache/echarts/blob/f4e18647917ae74b6bf0b76aa68c5605707ad6c0/src/util/graphic.ts#L167) [https://github.com/apache/echarts/blob/f4e18647917ae74b6bf0b76aa68c5605707ad6c0/src/util/graphic.ts#L167](https://github.com/apache/echarts/blob/f4e18647917ae74b6bf0b76aa68c5605707ad6c0/src/util/graphic.ts#L167) 但是只能解决单条 path, 多条 path 暂时还不知道如何解决

https://github.com/Dafrok/vue-baidu-map/blob/a7cbea8baae2bf53f8dac58db12a24a02ed96702/components/context-menu/Menu.vue#L31 将 MenuItem 的函数触发改为(新增) $emit 方式的触发, 体验是不是好点?