06 2021 档案

摘要:在宝塔面板站点中增加相应配置: location / { try_files $uri $uri/ @router; index index.html; } location @router { rewrite ^.*$ /index.html last; } 阅读全文
posted @ 2021-06-21 16:52 无聊的蚂蚁 阅读(1695) 评论(2) 推荐(0) 编辑
摘要:server { listen 80; server_name 123.xxx.com; index index.php index.html index.htm default.php default.htm default.html; root /www/wwwroot/123.xxx.com; 阅读全文
posted @ 2021-06-10 11:30 无聊的蚂蚁 阅读(98) 评论(0) 推荐(0) 编辑
摘要:Vue 实现动态生成路由:这个好使!!!! Vue 实现动态生成路由(动态生成菜单,根据菜单动态生成路由)_Vincent的博客-CSDN博客_vue动态路由 https://blog.csdn.net/tly599167/article/details/107378249/ 本人的办法: 首先通过 阅读全文
posted @ 2021-06-09 18:10 无聊的蚂蚁 阅读(1311) 评论(0) 推荐(0) 编辑
摘要:前端开发的的时候,使用vue cli3的devServer来解决跨域问题,上线部署则是用的nginx反向代理至后台服务所开的端口 在vue cli3中的配置在package.json同级目录下新建vue.config.js文件 devServer: { host: 'localhost',//tar 阅读全文
posted @ 2021-06-04 13:33 无聊的蚂蚁 阅读(1279) 评论(0) 推荐(0) 编辑
摘要:本地浏览器测试没有问题,但是在移动设备上出现了调用方法值一直会进行缓存的问题。 由于代码使用了闭包,原以为是这个原因造成的,声明了新的变量并不起作用,百度了半天才发现fetch这个东西有一个缓存设置cache: "force-cache",按照说明修改为no-cache,问题搞定!!! if (wi 阅读全文
posted @ 2021-06-02 11:59 无聊的蚂蚁 阅读(1573) 评论(0) 推荐(0) 编辑