|
@ -151,16 +151,6 @@ export default { |
|
|
// 登陆之后从localStorage获取党委为空则从网络上拉取 |
|
|
// 登陆之后从localStorage获取党委为空则从网络上拉取 |
|
|
this.checkLocakStorage() |
|
|
this.checkLocakStorage() |
|
|
}).catch(() => { }) |
|
|
}).catch(() => { }) |
|
|
this.$http.get(`/api/plugins/workLog/getCustomId`) |
|
|
|
|
|
.then(res => { |
|
|
|
|
|
if (res.data.code !== 0) { |
|
|
|
|
|
return this.$message.error(res.data.msg) |
|
|
|
|
|
} |
|
|
|
|
|
Cookies.set('customerId', res.data.data) |
|
|
|
|
|
}) |
|
|
|
|
|
.catch((err) => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
}) |
|
|
}, 1000, { 'leading': true, 'trailing': false }), |
|
|
}, 1000, { 'leading': true, 'trailing': false }), |
|
|
checkLocakStorage () { |
|
|
checkLocakStorage () { |
|
|