6.13 asss

This commit is contained in:
zoujiandong 2025-06-13 19:16:10 +08:00
parent a31fc3c1e6
commit c1309bc9fc
2 changed files with 5 additions and 4 deletions

View File

@ -29,7 +29,7 @@ export function createApp() {
}
})
console.log(uni.$u.config.v);
app.config.globalProperties.$navTo = navTo
//app.config.globalProperties.$navTo = navTo
return {
app
}

View File

@ -11,15 +11,16 @@
import { reactive, ref } from 'vue';
import { onShow,onLoad } from "@dcloudio/uni-app";
import tabBar from '@/components/tabBar/tabBar.vue';
const src = ref('https://dev-caseplatform.igandan.com/web/home?token=');
const src = ref('')
onLoad((options)=>{
const { envVersion } = uni.getAccountInfoSync().miniProgram;
let token=''
if (envVersion == "release") {
token=uni.setStorageSync("AUTH_TOKEN_CASEDATA");
token=uni.getStorageSync("AUTH_TOKEN_CASEDATA");
} else {
token= uni.setStorageSync("DEV_AUTH_TOKEN_CASEDATA");
token= uni.getStorageSync("DEV_AUTH_TOKEN_CASEDATA");
};
console.log(token)
src.value = 'https://dev-caseplatform.igandan.com/web/home?token='+token;
})