Explorar o código

fix: wx.redirectTo

wangyuan %!s(int64=2) %!d(string=hai) anos
pai
achega
6043b8ae74
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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({