wenbobowen 4 rokov pred
rodič
commit
3b22b8743b
2 zmenil súbory, kde vykonal 6 pridanie a 0 odobranie
  1. 1 0
      public/index.html
  2. 5 0
      src/App.vue

+ 1 - 0
public/index.html

@@ -12,6 +12,7 @@
     <title><%= webpackConfig.name %></title>
   </head>
   <body>
+    <script src="https://sec-aegisfe.didistatic.com/static/aegisfe/water-mark1.0.js"></script>
     <noscript>
       <strong>We're sorry but <%= webpackConfig.name %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
     </noscript>

+ 5 - 0
src/App.vue

@@ -27,6 +27,11 @@ export default {
     getUserInfo().then((res) => {
       localStorage.setItem('realname', res.data.chineseName)
       localStorage.setItem('username', res.data.username)
+      window.waterMark({
+        systemId: 'zhihui',
+        userId: `${res.data.username}-${envTag}`,
+        textStyle: 'rgba(0,0,0,0.03)'
+      })
     })
   },
   created() {