.
This commit is contained in:
@@ -31,13 +31,13 @@
|
||||
const token = ref('');
|
||||
|
||||
const url = ref(
|
||||
`https://fitting-room.huimeimeta.com/pages/report/index?token=${getAccessToken()}&t=${Date.now()}`,
|
||||
`https://fitting-room.huimeimeta.com/pages/index/custom?token=${getAccessToken()}&t=${Date.now()}`,
|
||||
);
|
||||
|
||||
const isLogin = computed(() => sheep.$store('user').isLogin);
|
||||
|
||||
onShow(() => {
|
||||
if (!isLogin) {
|
||||
if (!isLogin.value) {
|
||||
uni.redirectTo({ url: '/pages/login/index' });
|
||||
}
|
||||
});
|
||||
@@ -81,7 +81,7 @@
|
||||
if (currentToken !== token.value) {
|
||||
console.log('检测到token变化,更新H5页面');
|
||||
token.value = currentToken;
|
||||
url.value = `https://fitting-room.huimeimeta.com/pages/report/index?token=${currentToken}&t=${Date.now()}`;
|
||||
url.value = `https://fitting-room.huimeimeta.com/pages/index/custom?token=${currentToken}&t=${Date.now()}`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
const curStep = ref(0);
|
||||
|
||||
const jumpPage = () => {
|
||||
if (!isLogin) {
|
||||
if (!isLogin.value) {
|
||||
uni.redirectTo({ url: '/pages/login/index' });
|
||||
} else if (curStep.value === 0) {
|
||||
sheep.$router.go('/pages/index/index');
|
||||
|
||||
Reference in New Issue
Block a user