linwe
2023-12-08 75679e89f97ba7a9eed0cdd9f7b52e6d0646e13f
游客
1 files modified
34 ■■■■ changed files
http/api.js 34 ●●●● patch | view | raw | blame | history
http/api.js
@@ -121,25 +121,25 @@
        const currentPage = pages[pages.length - 1]
        uni.setStorageSync("responIndex", 0)
        uni.clearStorageSync()
        uni.redirectTo({
            url: `/pages/login/login-account?redirect=/${currentPage.route}`
        })
        // uni.redirectTo({
        //     url: `/pages/login/login-account?redirect=/${currentPage.route}`
        // })
        
         
        // uni.showModal({
        //     title: "提示",
        //     content: "请登录",
        //     showCancel: false,
        //     success: res => {
        //         if (res.confirm) {
        //             uni.redirectTo({
        //                 url: `/pages/login/login-account?redirect=/${currentPage.route}`
        //             })
        //         } else if (res.cancel) {
        //             console.log('用户点击取消');
        //         }
        //     }
        // })
        uni.showModal({
            title: "提示",
            content: "请登录",
            showCancel: false,
            success: res => {
                if (res.confirm) {
                    uni.redirectTo({
                        url: `/pages/login/login-account?redirect=/${currentPage.route}`
                    })
                } else if (res.cancel) {
                    console.log('用户点击取消');
                }
            }
        })
    }else {
        uni.showToast({
            title: '系统繁忙,请稍后再试',