zhangwei 2 年之前
父节点
当前提交
7e31d75881
共有 4 个文件被更改,包括 23 次插入1 次删除
  1. 2 0
      package.json
  2. 18 0
      src/entry/popup.js
  3. 2 1
      src/view/iframe/publish/give-dialog.vue
  4. 1 0
      src/view/popup/index.vue

+ 2 - 0
package.json

@@ -11,6 +11,8 @@
     "build-watch": "vue-cli-service  --env.NODE_ENV=development build-watch --mode development"
   },
   "dependencies": {
+    "@sentry/tracing": "^7.3.1",
+    "@sentry/vue": "^7.3.1",
     "ant-design-vue": "^2.2.8",
     "axios": "^0.26.1",
     "clipboard": "^2.0.10",

+ 18 - 0
src/entry/popup.js

@@ -9,6 +9,24 @@ import "ant-design-vue/dist/antd.css"; // or 'ant-design-vue/dist/antd.less'
 
 import {Button,message,Tooltip,Switch} from "ant-design-vue";
 
+// import * as Sentry from "@sentry/vue";
+// import { BrowserTracing } from "@sentry/tracing";
+
+
+// Sentry.init({
+//   app,
+//   dsn: "http://529fc1c357b248eda7473c119093f5db@sentry.denet.me/5",
+//   integrations: [
+//     new BrowserTracing({
+//       routingInstrumentation: Sentry.vueRouterInstrumentation(router),
+//       tracingOrigins: ["localhost", "my-site-url.com", /^\//],
+//     }),
+//   ],
+//   // Set tracesSampleRate to 1.0 to capture 100%
+//   // of transactions for performance monitoring.
+//   // We recommend adjusting this value in production
+//   tracesSampleRate: 1.0,
+// });
 
 message.config({
     top: `10px`,

+ 2 - 1
src/view/iframe/publish/give-dialog.vue

@@ -926,7 +926,8 @@ const submitRequest = async () => {
     let validityDuration = '';
     if(baseFormData.type == 2) {
         //小时转毫秒
-        let unit = process.env.NODE_ENV != 'production' ? 60 * 1000 : 60 * 60 * 1000;
+        // let unit = process.env.NODE_ENV != 'production' ? 60 * 1000 : 60 * 60 * 1000;
+        let unit = 60 * 60 * 1000
         validityDuration = baseFormData.validityDuration * unit;
     } else {
         validityDuration = '';

+ 1 - 0
src/view/popup/index.vue

@@ -30,6 +30,7 @@ onMounted(() => {
   if (window.location.href.indexOf('home.html') > 0) {
     state.popup = false
   }
+  // console.log(asdas)
 })
 
 </script>