This commit is contained in:
xuli
2025-11-28 18:25:42 +08:00
parent 5d2472eac5
commit b444bcee57

View File

@@ -34,7 +34,6 @@ import { useUserStore } from '@/stores/user';
const userStore = useUserStore(); const userStore = useUserStore();
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const networkEnv = ref(proxy.$NETWORK_ENV);//1-内网 2-外网 const networkEnv = ref(proxy.$NETWORK_ENV);//1-内网 2-外网
console.log(111,networkEnv.value)
// #ifdef APP-PLUS // #ifdef APP-PLUS
// 获取 存储手机的module // 获取 存储手机的module
@@ -50,7 +49,7 @@ let downloadURL = ref(''); //下载地址
let versionData = ref({}); //版本参数 let versionData = ref({}); //版本参数
// 初始load页面 // 初始load页面
onLoad(async(opt) => { onLoad(async(opt) => {
console.log("onLoad"); // console.log("onLoad");
// uni.preloadPage({url: "/pages/login/login"}); // uni.preloadPage({url: "/pages/login/login"});
// uni.preloadPage({url: "/pages/deviceAuth/deviceAuth"}); // uni.preloadPage({url: "/pages/deviceAuth/deviceAuth"});
// uni.preloadPage({url: "/pages/home/home"}); // uni.preloadPage({url: "/pages/home/home"});
@@ -101,7 +100,11 @@ onLoad(async(opt) => {
// 获取minio参数 // 获取minio参数
const getMinioParam=async ()=>{ const getMinioParam=async ()=>{
let data = await minioParam({}); let data = await minioParam({});
uni.setStorageSync(MINIO_KEY,JSON.stringify(data)) let minioThumbUrl = data.endpoint + "/thumb/"+data.bucketName;
let minioUrl = data.endpoint + "/"+data.bucketName
uni.setStorageSync(MINIO_KEY,JSON.stringify({
minioThumbUrl,minioUrl
}))
} }
// 检查版本是否是最新的s // 检查版本是否是最新的s