过滤器
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/9bb634d9ca5a4c02571605f99ff4a2d0.png)
全局变量
window.localStorage.setItem('mes',mes)
let some = JSON.stringify(window.localStorage.getItem('mes'))
axios
getToken() {
return request({
url: this.obj.getTokenHost + '/tenant/api/get/token?' + this.obj.urlParam,
method: 'post',
data: {
"u_id": this.obj.u_id,
"u_name": this.obj.u_name,
"u_level": this.obj.u_level,
"timestamp": this.obj.timestamp,
}
}).then(resp => {
console.log(resp);
if (resp.data.status == '0') {
this.$message({
type: "error",
message: '获取智慧助餐系统TOKEN失败!'
});
} else if (resp.data.status == '1') {
window.open(this.obj.openWindowHost + "/#/tenant/login?tenant_token=" + resp.data.result.token);
}
});
},