linwenxin 3 mesi fa
parent
commit
27368d317a
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/common/http/index.js

+ 2 - 1
src/common/http/index.js

@@ -6,6 +6,7 @@ import store from '@/store/index.js'
 import { goLoginPage } from '@/mixins/index.js'
 
 import { setStorage, getStorage, removeStorage } from '@/common/utils/storage.js'
+import { navToPage } from 'common/utils/navPag'
 
 const program = {
   H5: 'wap',
@@ -68,7 +69,7 @@ export const $http = (url, method, data, json, loadingBool = false, isExecute =
           confirmText: '立即绑定',
           success: function (res) {
             if (res.confirm) {
-              this.$navToPage({
+              navToPage({
                 url: '/packageMine/pages/phone'
               })
             } else if (res.cancel) {