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

你可能感兴趣的文章
mysql日志 事务问题_mysql因为事务日志问题无法启动
查看>>
mysql日志文件
查看>>
mysql日志管理学习笔记
查看>>
mysql日志问题定位实用命令
查看>>
MySQL日期时间函数大全
查看>>
mysql时间相减的问题
查看>>