修改搜索公寓全局变量的指向问题

This commit is contained in:
A1300399510
2024-04-29 18:07:03 +08:00
parent 4bc572173b
commit 31075ddd87
21 changed files with 37 additions and 28 deletions

View File

@@ -5,7 +5,6 @@ import { showFullScreenLoading, tryHideFullScreenLoading } from "./loading"
import store from "@/store/index"
axios.defaults.baseURL = "https://app.gter.net"
// axios.defaults.baseURL = '/index'
axios.defaults.emulateJSON = true
axios.defaults.withCredentials = true
@@ -21,7 +20,7 @@ axios.interceptors.request.use(
if (config.url != "/tenement/pc/api/user/operation" && !noMask) showFullScreenLoading()
// 开发时登录用的,可以直接替换小程序的 authorization
// if (process.env.NODE_ENV == "development") config['headers']['authorization'] = "x2mmnl9grt51bpplj2k6ioiuummzhnw3"
if (process.env.NODE_ENV == "development") config["headers"]["authorization"] = "mx25rp0q99x3sis8hidugttty80c5qum"
if (process.env.NODE_ENV == "development") config["headers"]["authorization"] = "b56e234d748d4203e3ce4caa0aedf70a"
// 当 noMask == true 和 confing.method == 'get' 时,删除 config.params['noMask']
if (noMask && config.method == "get") delete config.params["noMask"]