Переглянути джерело

'&otherParam=' + this.data.otherParam

姜永辉 1 рік тому
батько
коміт
e22b26047e
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      pages/welcome/welcome.js

+ 1 - 1
pages/welcome/welcome.js

@@ -431,7 +431,7 @@ Page({
                             wx.reLaunch({
                                 url: '../../pages/home-page/home-page?loginType=' 
                                 + this.data.loginType
-                                + '&otherParam=' + this.data.otherParam,
+                                + (this.data.otherParam?'&otherParam=' + this.data.otherParam:''),
                             })
                         }
                     }