Просмотр исходного кода

计划外列表页面刷新优化

zhujindu 11 месяцев назад
Родитель
Сommit
7ae67d444f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/utils/TXApiFun.js

+ 1 - 1
src/utils/TXApiFun.js

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