修改电量查询分页内容,兼容开票时用户未填写发票信息的问题

This commit is contained in:
2024-08-06 17:31:26 +08:00
parent f1358c2315
commit cf7756dd5c
917 changed files with 22 additions and 22876 deletions

View File

@@ -1,5 +1,5 @@
import { alertError, alertInfo, getGlobalData } from './index.js';
import { getPageUrl } from './index'
// 普通函数 -> Promise函数
const promisify = (api) => {
return (options, ...params) => {
@@ -87,6 +87,7 @@ const parseResponse = function (response, url) {
console.log('url', url,'code', code, 'response.data', response.data)
if (code === 401) {
const currentUrl = getPageUrl()
if (!['pages/home/index', 'pages/login/index'].includes(currentUrl)) {
wx.redirectTo({
url: '/pages/login/index',