|
@@ -3,7 +3,7 @@
|
3
|
3
|
</template>
|
4
|
4
|
<script lang="ts" setup>
|
5
|
5
|
import { getQueryString } from '@/utils/common'
|
6
|
|
-import { ref, onBeforeMount, onErrorCaptured } from "vue";
|
|
6
|
+import { onBeforeMount } from "vue";
|
7
|
7
|
import { Toast } from 'vant';
|
8
|
8
|
import $axios from '@/utils/axios'
|
9
|
9
|
|
|
@@ -36,8 +36,6 @@ const setOriginalLink = () => {
|
36
|
36
|
// [ 5, '链接无jumpLink参数' ],
|
37
|
37
|
// [ 6, '跳转企微授权' ],
|
38
|
38
|
// [ 7, '跳转第三方链接' ],
|
39
|
|
-// [ 8, 'App.vue onErrorCaptured' ],
|
40
|
|
-// [ 9, 'ww27823a3b2285bd5d 上报' ],
|
41
|
39
|
|
42
|
40
|
const handleWarnReport = async (step, errMsg?) => {
|
43
|
41
|
try {
|
|
@@ -59,10 +57,6 @@ const handleWarnReport = async (step, errMsg?) => {
|
59
|
57
|
}
|
60
|
58
|
}
|
61
|
59
|
|
62
|
|
-onErrorCaptured((err) => {
|
63
|
|
- handleWarnReport(8, err.message)
|
64
|
|
-})
|
65
|
|
-
|
66
|
60
|
onBeforeMount(() => {//组件挂载之前
|
67
|
61
|
setOriginalLink()
|
68
|
62
|
|
|
@@ -75,10 +69,6 @@ onBeforeMount(() => {//组件挂载之前
|
75
|
69
|
handleWarnReport(1)
|
76
|
70
|
}
|
77
|
71
|
|
78
|
|
- if (getQueryString('corpid') === 'ww27823a3b2285bd5d') {
|
79
|
|
- handleWarnReport(9)
|
80
|
|
- }
|
81
|
|
-
|
82
|
72
|
try {
|
83
|
73
|
let redirect_uri = encodeURIComponent(window.location.href + '&againJump=true')
|
84
|
74
|
let url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${getQueryString('corpid')}&redirect_uri=${redirect_uri}&response_type=code&scope=snsapi_base&state=1&agentid=1000012#wechat_redirect`;
|