Commit 274c5d5e821842b6b114e175be345a8af850f4d9
1 parent
7804731f
Exists in
master
feat:健康地址
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
src/App.vue
@@ -20,16 +20,15 @@ export default { | @@ -20,16 +20,15 @@ export default { | ||
20 | watch: { | 20 | watch: { |
21 | $route(to, from) { | 21 | $route(to, from) { |
22 | let centerNo = localStorage.getItem('centerNo') | 22 | let centerNo = localStorage.getItem('centerNo') |
23 | - if(centerNo){ | ||
24 | - console.log('zheliban hasUserId》》》 ', to, from) | 23 | + if (centerNo) { |
24 | + console.log('zheliban hasUserId》》》 ', to, from) | ||
25 | this.$zwlogPvGlobal({ url: to.meta.pagePath, enterPageTime: new Date() }) | 25 | this.$zwlogPvGlobal({ url: to.meta.pagePath, enterPageTime: new Date() }) |
26 | this.$zwlogPvGlobal({ | 26 | this.$zwlogPvGlobal({ |
27 | url: from.meta.pagePath, | 27 | url: from.meta.pagePath, |
28 | leavePageTime: new Date(), | 28 | leavePageTime: new Date(), |
29 | }) | 29 | }) |
30 | - | ||
31 | - }else{ | ||
32 | - console.log('zheliban noUserId》》》 ', to, from) | 30 | + } else { |
31 | + console.log('zheliban noUserId》》》 ', to, from) | ||
33 | } | 32 | } |
34 | }, | 33 | }, |
35 | }, | 34 | }, |
@@ -52,7 +51,8 @@ export default { | @@ -52,7 +51,8 @@ export default { | ||
52 | }) | 51 | }) |
53 | }) | 52 | }) |
54 | // 健康地址调用 | 53 | // 健康地址调用 |
55 | - this.yxAxios.get(`https://ocp.sxsedu.net/szsh/health/checkSx`).then((res) => { | 54 | + // this.yxAxios.get(`https://proxy.shunzhi.net/achieve/healthCheckSXYX`).then((res) => { |
55 | + this.yxAxios.get(`https://ocp.sxsedu.net/szsh/health/checkSx`).then((res) => { | ||
56 | console.log('健康地址:', JSON.stringify(res.data)) | 56 | console.log('健康地址:', JSON.stringify(res.data)) |
57 | const bodyElement = document.getElementsByTagName('body')[0] | 57 | const bodyElement = document.getElementsByTagName('body')[0] |
58 | bodyElement.append(JSON.stringify(res.data)) | 58 | bodyElement.append(JSON.stringify(res.data)) |