Forráskód Böngészése

[edit] add sentry

wenliming 2 éve
szülő
commit
8f0e1a9d00

+ 3 - 2
src/iframe/ach-cashier.js

@@ -2,5 +2,6 @@ import { createApp } from 'vue'
 import App from '@/view/iframe/ach-pay/cashier.vue'
 
 const app = createApp(App);
-
-app.mount('#app');
+import CoutomSentry from "@/uilts/sentry.js"
+CoutomSentry.initVue(app)
+app.mount('#app');

+ 2 - 1
src/iframe/tool-box-buy-nft.js

@@ -3,6 +3,7 @@ import App from '@/view/iframe/tool-box/buy-nft.vue'
 import AutoLog from '@/log-center/autoLog';
 
 const app = createApp(App);
-
+import CoutomSentry from "@/uilts/sentry.js"
+CoutomSentry.initVue(app)
 app.use(AutoLog);
 app.mount('#app');

+ 3 - 2
src/iframe/tool-box-guide.js

@@ -6,10 +6,11 @@ import "ant-design-vue/dist/antd.css"; // or 'ant-design-vue/dist/antd.less'
 import {message} from "ant-design-vue";
 
 const app = createApp(App);
-
+import CoutomSentry from "@/uilts/sentry.js"
+CoutomSentry.initVue(app)
 app.use(message);
 app.mount('#app');
 
 window.onload= () => {
     document.title = 'DeNet'
-}
+}

+ 3 - 1
src/iframe/tool-box.js

@@ -1,4 +1,6 @@
 import { createApp } from 'vue'
 import App from '@/view/iframe/tool-box/index.vue'
 const app = createApp(App);
-app.mount('#app');
+import CoutomSentry from "@/uilts/sentry.js"
+CoutomSentry.initVue(app)
+app.mount('#app');

+ 3 - 0
src/iframe/treasure-hunt.js

@@ -1,6 +1,9 @@
 import { createApp } from 'vue'
 import App from '@/view/iframe/test/index.vue'
 import AutoLog from '@/log-center/autoLog';
+import CoutomSentry from "@/uilts/sentry.js"
+
 const app = createApp(App);
+CoutomSentry.initVue(app)
 app.use(AutoLog)
 app.mount('#app');

+ 1 - 1
src/view/iframe/treasure-hunt/cover.vue

@@ -418,7 +418,7 @@ const getUsersFollowStatus = () => {
 
 const onWindowMessage = () => {
   window.onmessage = (res) => {
-    console.log(res, 'ddd cover')
+    console.log('onWindowMessage', res);
     if(res && res.data && res.data.actionType) {
       let msgData = res.data.data;
       if(msgData.iframeGUId == state.iframeId) {

+ 1 - 4
src/view/iframe/treasure-hunt/index.vue

@@ -67,9 +67,8 @@ onMounted(() => {
 })
 
 const onWindowMessage = () => {
+  console.log('onWindowMessage', res);
   window.onmessage = (res) => {
-    console.log(res, 'dd index')
-
     if(res && res.data && res.data.actionType) {
       let msgData = res.data.data;
       if(msgData.iframeGUId == state.iframeId) {
@@ -77,7 +76,6 @@ const onWindowMessage = () => {
           case "CONTENT_GET_TWEET_TXT":
             if (msgData.tweet_Id == state.tweetId && !state.detail.postSrcContent) {
               state.detail.postSrcContent = msgData.txt
-              console.log(msgData, 'dd index1')
               reSetBindPostContent({
                   postId: state.postId || '',
                   postSrcContent: msgData.txt,
@@ -92,7 +90,6 @@ const onWindowMessage = () => {
                 twitterFans = legacy ? legacy.followers_count : 0;
             }
             if (msgData.objectType == Report.objectType.tweetPostBinded) {
-              console.log(msgData, 'dd index2')
                 Report.reportLog({
                   objectType: Report.objectType.tweetPostBinded,
                   twitterFans: twitterFans,