- 博客(4)
- 收藏
- 关注
原创 vue项目token过期
问题:vue项目token过期,后端会在token过期之前两秒钟在控制台的返给前端一个新的authorization(token) token过期分析:1.jwt过期(其中一个过期)===> 后端返回新的token,重新赋值存储setToken 2.jwt过期和redis过期(两个头过期) ===> 直接返回/login页面 解决:后端把新的authorization(token)返到在response header 里面,前端在ax...
2021-11-01 18:50:37
1877
原创 vue-cli3.0 +element-admin页面首次加载缓慢(空白页面)
问题: vue页面首次加载缓慢(空白页面),20s才能加载出来页面 解决: 1. 在前端项目中使用gzip 安装插件: npm install compression-webpack-plugin --save-dev 使用:在vue.config.js const webpack = require('webpack') const CompressionWebpackPlugin = require('compression-webpack-plugin') const productio.
2021-10-29 14:11:31
3419
1
原创 H5 提示框插件
把其他cdn地址都尝试了一遍,只有这个管用~ 完美解决!!! <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script> swal("兑换码不能为空", { buttons: false, timer: 2000, }); cdn地址:https://unpkg.com/sweetalert/dist/sweetalert.min.js ...
2021-03-04 16:38:44
574
1
转载 H5本地写完,在手机上上预览
1.安装node 2.在项目的文件夹上 npm install anywhere -g 3.执行anywhere anywhere 参考链接:https://blog.youkuaiyun.com/qq_42957741/article/details/107839029
2021-03-04 16:32:15
289
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅