当添加的内容输入后,没有保存,切换了页面路由,再返回到此页面,数据内容消失了;需要保存输入的内容处理;
通过添加缓存方法添加保存以下是部分主要代码:
主要本地存储代码
123456789101112131415161718// 取缓存 getStorage() { this.newVal = JSON.parse(localStorage.getItem('alloatAddInfo')) ? JSON.parse(localStorage.getItem('alloatAddInfo')) : {} // 根据需求赋值 this.basic = this.newVal this.buyerName = this.newVal.buyerName ? this.newVal.buyerName : '' this.tableData = this.newVal.itemInfo && this.newVal.itemIn ...
本文主要介绍博客用到的技术和一些功能详情
1、博客使用到的技术
前端:vue + vuex + vue-router + axios + vuetify + element + echarts + Websocket
后端:SpringBoot + nginx + docker + SpringSecurity + Swagger2 + MyBatisPlus + Mysql + Redis + elasticsearch + RabbitMQ + MaxWell + Websocket (合作小伙伴写的)
2、首页登录本博客支持QQ、gitee、微博、邮箱登录
3、图片的存储项目中图片存储采用的是腾讯云平台的对象存储,因为腾讯云新用户会有免费的一个额度,其他的都是需要收费的。
4、首页的搜索首页的搜索采用的是es的搜索,eslinux启动的话会占用比较高的一个内存,所以博主介意如需要使用es搜索的购买服务器时资金允许的情况下尽可能购买内存比较多的服务器。然后项目搜索的话主要是围绕文章的标题和内容进行的分词搜索。
5、项目亮点1.前台参考”Hexo”的”Butterfly”设计, ...
Hello World
未读Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment