修复审核版本
This commit is contained in:
parent
a1cf42d1fe
commit
99e553008d
|
|
@ -8,7 +8,11 @@
|
|||
</view>
|
||||
|
||||
<!-- 背景图 -->
|
||||
<image :src="templeData.imgUrl" class="bj" mode="aspectFill"></image>
|
||||
<image
|
||||
:src="pageConfig.background.img"
|
||||
class="bj"
|
||||
mode="aspectFill"
|
||||
></image>
|
||||
|
||||
<!-- 音频与VR图标 -->
|
||||
<view class="tubiao">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// 统一请求工具
|
||||
import { getAppId, getTempToken } from "@/config/dev.js";
|
||||
import { getAppId } from "@/config/dev.js";
|
||||
import debounce from "uview-ui/libs/function/debounce";
|
||||
|
||||
// 环境配置
|
||||
|
|
@ -51,11 +51,6 @@ console.log("HTTP配置:", {
|
|||
function getRequestHeaders(customHeader = {}) {
|
||||
let token = uni.getStorageSync("token");
|
||||
|
||||
// 开发环境使用临时token
|
||||
if (!token) {
|
||||
token = getTempToken();
|
||||
}
|
||||
|
||||
let authorization = token;
|
||||
|
||||
// 平台差异化处理
|
||||
|
|
@ -146,12 +141,6 @@ export function request(options = {}) {
|
|||
|
||||
let token = uni.getStorageSync("token");
|
||||
|
||||
// 如果本地没有token且启用了临时token,则使用临时token
|
||||
if (!token && !options.noToken) {
|
||||
token = getTempToken();
|
||||
console.log("使用临时token进行开发测试");
|
||||
}
|
||||
|
||||
// 验证URL格式
|
||||
if (!options.url || typeof options.url !== "string") {
|
||||
reject(new Error("无效的URL"));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user