修改电量查询分页内容,兼容开票时用户未填写发票信息的问题
This commit is contained in:
@@ -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',
|
||||
|
Reference in New Issue
Block a user