6.16
This commit is contained in:
+15
-3
@@ -13,15 +13,27 @@
|
||||
import tabBar from '@/components/tabBar/tabBar.vue';
|
||||
const src = ref('')
|
||||
onLoad((options)=>{
|
||||
const { envVersion } = uni.getAccountInfoSync().miniProgram;
|
||||
if(process.env.UNI_PLATFORM =="h5"){
|
||||
let token='';
|
||||
if(window.location.href.indexOf('//casedata.igandan.com')>-1){
|
||||
token=uni.getStorageSync("AUTH_TOKEN_CASEDATA");
|
||||
src.value = 'https://caseplatform.igandan.com/web/home?token='+token;
|
||||
}else{
|
||||
token=uni.getStorageSync("DEV_AUTH_TOKEN_CASEDATA");
|
||||
src.value = 'https://dev-caseplatform.igandan.com/web/home?token='+token;
|
||||
}
|
||||
|
||||
}else{
|
||||
const { envVersion } = uni.getAccountInfoSync().miniProgram;
|
||||
let token=''
|
||||
if (envVersion == "release") {
|
||||
token=uni.getStorageSync("AUTH_TOKEN_CASEDATA");
|
||||
} else {
|
||||
token= uni.getStorageSync("DEV_AUTH_TOKEN_CASEDATA");
|
||||
};
|
||||
console.log(token)
|
||||
src.value = 'https://dev-caseplatform.igandan.com/web/home?token='+token;
|
||||
src.value = 'https://dev-caseplatform.igandan.com/web/home?token='+token;
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user