Browse Source

no message

BF-202210271038\Administrator 2 years ago
parent
commit
5dd163089b
2 changed files with 4 additions and 1 deletions
  1. 3 0
      common/router/router.js
  2. 1 1
      pages/index/index.vue

+ 3 - 0
common/router/router.js

@@ -35,6 +35,9 @@ router.beforeEach((to, from, next) => {
 // 全局路由后置守卫
 router.afterEach((to, from) => {
     console.log('后置守卫to------', to)
+    if(to.path!=='/pages/index/error'){
+
+    }
 })
 
 export {

+ 1 - 1
pages/index/index.vue

@@ -91,7 +91,7 @@ export default {
     setClipboardData(){
       console.log(window.location)
       uni.setClipboardData({
-        data: window.origin+'/#/pages/index/index?inviteCode'+this.babAddress,
+        data: window.origin+'/#/pages/index/index?inviteCode='+this.babAddress,
         success: function () {
           console.log('success');
         }