换上传二维码链接

This commit is contained in:
A1300399510
2024-06-17 15:05:45 +08:00
parent b1b70396a3
commit a4c13689de
11 changed files with 4653 additions and 4789 deletions

View File

@@ -7,7 +7,7 @@ import store from "@/store/index"
axios.defaults.baseURL = "https://app.gter.net"
axios.defaults.emulateJSON = true
axios.defaults.withCredentials = true
// content-type 为 multipart/form-data
axios.interceptors.request.use(
//响应拦截
async config => {
@@ -20,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"] = "b56e234d748d4203e3ce4caa0aedf70a"
if (process.env.NODE_ENV == "development") config["headers"]["authorization"] = "95paemsnrr393p9vikpp16qo72"
// 当 noMask == true 和 confing.method == 'get' 时,删除 config.params['noMask']
if (noMask && config.method == "get") delete config.params["noMask"]
@@ -100,6 +100,7 @@ const $post = (url, params) => {
})
})
}
//下面是vue3必须加的vue2不需要只需要暴露出去getpost方法就可以
export default {
get: $get,