This commit is contained in:
@@ -35,7 +35,7 @@ const userInfo = ref({
|
||||
phone: '',
|
||||
});
|
||||
|
||||
const optData = ref({});
|
||||
const optData = ref<any>({});
|
||||
|
||||
Taro.useLoad(opt => {
|
||||
optData.value = opt;
|
||||
@@ -76,7 +76,7 @@ const getPhoneNumber = async (e: any) => {
|
||||
duration: 2000,
|
||||
});
|
||||
Taro.setStorageSync('token', ress.data.token);
|
||||
if (optData.value.isBack) {
|
||||
if (optData.value.isBack !== 'undefined') {
|
||||
await getUserInfo();
|
||||
Taro.navigateBack({
|
||||
delta: 1,
|
||||
@@ -119,7 +119,7 @@ const toPage = () => {
|
||||
icon: 'none',
|
||||
});
|
||||
Taro.navigateTo({
|
||||
url: '/pages/users/bindPhone/index?type=1',
|
||||
url: `/pages/users/bindPhone/index?type=1&isBack=${optData.value.isBack}`,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user