摘要: formatDate(ts) { var now = new Date(ts); var year = now.getFullYear(); var month = ((now.getMonth() + 1) < 10) ? ('0' + (now.getMonth() + 1)) : (now.g 阅读全文
posted @ 2021-07-20 15:32 想学前端的小李 阅读(443) 评论(0) 推荐(0)
摘要: 用vue打包后,用Nginx代理后发现刷新总是会报404 根据网上的方法将路由模式由history改成hash即可 下面是区别 原文章 https://www.jianshu.com/p/13415101a8f1 hash模式 vue-router默认的是hash模式. hash模式,是指url尾巴 阅读全文
posted @ 2021-07-20 14:58 想学前端的小李 阅读(511) 评论(0) 推荐(0)
摘要: 每次使用宝塔打开端口,发现总访问不了, 后来去安全组规则发现端口并没有打开, 所以打开新端口先用阿里的安全规则组 在去宝塔页面放行 阅读全文
posted @ 2021-07-20 14:52 想学前端的小李 阅读(82) 评论(0) 推荐(0)