Browse Source

计划外列表页面刷新优化

zhujindu 10 months ago
parent
commit
459cc9d723
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/utils/TXApiFun.js

+ 2 - 2
src/utils/TXApiFun.js

@@ -95,9 +95,9 @@ export function getPosition(isPermit = false) {
 export function getTicketFun(jsApiList = ['getLocation'], configType = 'config') {
   return new Promise((resolve, reject) => {
     // 当前页面
-    let url = window.location.href.split('mobile')[0];
+    let url = window.location.href.split('/mobile')[0];
     //  获取签名
-    getTicket({ url: url + 'mobile/' }).then((response) => {
+    getTicket({ url: url }).then((response) => {
       console.log(response);
       toastLoading().clear();
       if (response.code == 200) {