<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://118.89.113.211/hcsy/jquery.min.js"></script>
<script type="text/javascript" src="http://118.89.113.211/WXstyle/js/vue.js"></script>
</head>
<body>
<div id="App">{{msg}}</div>
<script type="text/javascript">
var Vm=new Vue({
el:"#App",
data:{
msg:"hello word"
},
mounted:function(){
console.log(this.msg);
},
methods:{
add:function(){
this.msg="改变";
console.log(this.msg);
}
}
});
//使用实例
Vm.add();
</script>
</body>
<html>
<head>
<script type="text/javascript" src="http://118.89.113.211/hcsy/jquery.min.js"></script>
<script type="text/javascript" src="http://118.89.113.211/WXstyle/js/vue.js"></script>
</head>
<body>
<div id="App">{{msg}}</div>
<script type="text/javascript">
var Vm=new Vue({
el:"#App",
data:{
msg:"hello word"
},
mounted:function(){
console.log(this.msg);
},
methods:{
add:function(){
this.msg="改变";
console.log(this.msg);
}
}
});
//使用实例
Vm.add();
</script>
</body>
</html>
this.
$store.
dispatch(
'update_userinfo', {
userinfo:
data.
userinfo
}).
then(()
=> {
this.
login_actions.
disabled =
false;
if (
data.
userinfo.
default_web_routers){
this.
$router.
push(
data.
userinfo.
default_web_routers);
}
else{
this.
$router.
push(
'/function/open/echarts');
}
});