博客
关于我
watch监听 vuex及路由
阅读量:610 次
发布时间:2019-03-13

本文共 265 字,大约阅读时间需要 1 分钟。

watch:{   	'$store.state.userNumber'(val){        	if( !this.isLogin){          		this.Login=val     	}	},	$route(to,from){         	if(to.path=='/login'||to.path=='/logins'){           	this.isHeader=false      	}else {           	this.isHeader=true      	}    },}

转载地址:http://cyyaz.baihongyu.com/

你可能感兴趣的文章
Node中同步与异步的方式读取文件
查看>>
node中的get请求和post请求的不同操作【node学习第五篇】
查看>>
Node中的Http模块和Url模块的使用
查看>>
Node中自启动工具supervisor的使用
查看>>
Node入门之创建第一个HelloNode
查看>>
node全局对象 文件系统
查看>>
Node出错导致运行崩溃的解决方案
查看>>
Node响应中文时解决乱码问题
查看>>
node基础(二)_模块以及处理乱码问题
查看>>