修复审核版本

This commit is contained in:
WindowBird 2025-10-15 17:39:37 +08:00
parent a1cf42d1fe
commit 99e553008d
2 changed files with 6 additions and 13 deletions

View File

@ -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">

View File

@ -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"));