6.13 asss
This commit is contained in:
parent
a31fc3c1e6
commit
c1309bc9fc
2
main.js
2
main.js
@ -29,7 +29,7 @@ export function createApp() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
console.log(uni.$u.config.v);
|
console.log(uni.$u.config.v);
|
||||||
app.config.globalProperties.$navTo = navTo
|
//app.config.globalProperties.$navTo = navTo
|
||||||
return {
|
return {
|
||||||
app
|
app
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,15 +11,16 @@
|
|||||||
import { reactive, ref } from 'vue';
|
import { reactive, ref } from 'vue';
|
||||||
import { onShow,onLoad } from "@dcloudio/uni-app";
|
import { onShow,onLoad } from "@dcloudio/uni-app";
|
||||||
import tabBar from '@/components/tabBar/tabBar.vue';
|
import tabBar from '@/components/tabBar/tabBar.vue';
|
||||||
const src = ref('https://dev-caseplatform.igandan.com/web/home?token=');
|
const src = ref('')
|
||||||
onLoad((options)=>{
|
onLoad((options)=>{
|
||||||
const { envVersion } = uni.getAccountInfoSync().miniProgram;
|
const { envVersion } = uni.getAccountInfoSync().miniProgram;
|
||||||
let token=''
|
let token=''
|
||||||
if (envVersion == "release") {
|
if (envVersion == "release") {
|
||||||
token=uni.setStorageSync("AUTH_TOKEN_CASEDATA");
|
token=uni.getStorageSync("AUTH_TOKEN_CASEDATA");
|
||||||
} else {
|
} 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;
|
src.value = 'https://dev-caseplatform.igandan.com/web/home?token='+token;
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user