博客
关于我
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/

你可能感兴趣的文章
NLP项目:维基百科文章爬虫和分类【02】 - 语料库转换管道
查看>>
NLP:从头开始的文本矢量化方法
查看>>
NLP:使用 SciKit Learn 的文本矢量化方法
查看>>
NLTK - 停用词下载
查看>>
nmap 使用总结
查看>>
nmap 使用方法详细介绍
查看>>
nmap使用
查看>>
nmap使用实战(附nmap安装包)
查看>>