Ver Fonte

fix: wx.redirectTo

wangyuan há 2 anos atrás
pai
commit
6043b8ae74
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      api/request.js
  2. 1 1
      pages/permissions/permissions.js

+ 1 - 1
api/request.js

@@ -1,5 +1,5 @@
 /* wx.request */
-const BASE_API = 'https://itt-worker.chl6zk.store/api' 
+const BASE_API =  'https://worker.itthealth.com/api' // 'https://itt-worker.chl6zk.store/api' 
 const BASE_VERSION = '/v1'
 import itt from '../utils/util'
 const app = getApp()

+ 1 - 1
pages/permissions/permissions.js

@@ -106,7 +106,7 @@ Page({
         showCancel: false,
         success (pres) {
           if (pres.confirm) {
-            wx.navigateTo({
+            wx.redirectTo({
               url: '/pages/workbench/workbench?form=peimission&deviceName=' + scanres.data.deviceName + '&deviceCode=' + scanres.data.deviceCode,
               success () {
                 that.setData({