.
This commit is contained in:
@@ -31,13 +31,13 @@
|
|||||||
const token = ref('');
|
const token = ref('');
|
||||||
|
|
||||||
const url = 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);
|
const isLogin = computed(() => sheep.$store('user').isLogin);
|
||||||
|
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
if (!isLogin) {
|
if (!isLogin.value) {
|
||||||
uni.redirectTo({ url: '/pages/login/index' });
|
uni.redirectTo({ url: '/pages/login/index' });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -81,7 +81,7 @@
|
|||||||
if (currentToken !== token.value) {
|
if (currentToken !== token.value) {
|
||||||
console.log('检测到token变化,更新H5页面');
|
console.log('检测到token变化,更新H5页面');
|
||||||
token.value = currentToken;
|
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 curStep = ref(0);
|
||||||
|
|
||||||
const jumpPage = () => {
|
const jumpPage = () => {
|
||||||
if (!isLogin) {
|
if (!isLogin.value) {
|
||||||
uni.redirectTo({ url: '/pages/login/index' });
|
uni.redirectTo({ url: '/pages/login/index' });
|
||||||
} else if (curStep.value === 0) {
|
} else if (curStep.value === 0) {
|
||||||
sheep.$router.go('/pages/index/index');
|
sheep.$router.go('/pages/index/index');
|
||||||
|
|||||||
Reference in New Issue
Block a user