自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 redis报错:(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to pers

今天使用redis时出现了以下错误:(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.原因:强制关闭了redis快照导致无法持久化。解决

2021-07-12 19:01:03 317 1

原创 Redis-server报错:Creating Server TCP listening socket *:6379: bind: Address already in use

今天学习redis时,输入redis-server命令,出现了以下错误,即6379端口被占用了解决方法找到占用6379端口的进程ps -ef | grep -i redis上图中8044即为占用端口的进程,杀死该进程kill -9 8044若出现图上问题是权限不够,执行如下命令: sudo kill -9 8044重新启动redis,输入如下命令:redis-cli...

2021-06-30 17:52:47 599

原创 vue 父组件与子组件传递参数失败问题

今天写博客获取评论模块,需要从父组件向子组件传递topicId,但评论一直不显示子组件:export default { name: "CommentView", prop: ['topicId'], components: { AddComment }, data() { return { comments: [] }; }, created() { this.fetchComment() }, methods: { f

2021-06-17 15:26:55 2082

原创 Element-ui 回到顶部组件不显示问题解决

Element-ui官网自定义回到顶部插件内容如下,但是复制到自己的代码里没有显示。<template> Scroll down to see the bottom-right button. <el-backtop target=".page-component__scroll .el-scrollbar__wrap" :bottom="100"> <div style="{ height: 100%; width

2021-06-06 16:55:43 2515 6

原创 vue-router.esm.js?8c4f:2065 Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation

今天在写退出登录页面的时候遇到了这个问题,因为退出登录按钮本身在Home页面上,即路由地址为’ / ’ 的页面,退出登录后重定向到的页面依然是Home页面,也就是所谓的产生了冗余导航,vue-router便报错了。解决办法:将如下代码加入到路由设置文件index.js中即可const originalPush = VueRouter.prototype.pushVueRouter.prototype.push = function push(location) { return origin.

2021-06-04 20:27:43 5976 6

原创 Method “computed“ has type “object“ in the component definition. Did you reference the function corr

今天写vue登录页面时遇到了Bug,找了很久发现将computed写到了methods里面,应该是在methods外面报错:修改前:<script>import { mapGetters } from 'vuex'export default { name: "WelcomeLogin", methods: { gotoLogin() { this.$router.replace('/login') }, gotoRegister() {

2021-06-03 11:54:46 351

原创 Vue学习之用户注册界面

这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入欢迎使用Markdown编辑器你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Mar

2021-05-31 17:48:23 803 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除