wl
2022-12-27 c5823a28c388550ef40268c8a94294db9447720a
miniprogram/pages/index/index.ts
@@ -32,11 +32,11 @@
                var info = wx.getStorageSync('info')
                console.log("获取缓存:" + role)
                if (role == 0) {
                    wx.redirectTo(
                        {
                            url: '../user/index'
                        }
                    )
                        wx.redirectTo(
                            {
                                url: '../user/index'
                            }
                        )
                }
                if (role == 1) {
                    wx.redirectTo(
@@ -82,9 +82,10 @@
                        wx.setStorageSync('token', res.data.data.token)
                        wx.setStorageSync('role', res.data.data.role)
                        wx.setStorageSync('id', res.data.data.id)
                        wx.setStorageSync('card',res.data.data.time)
                        console.log(res.data.data.id)
                        if (res.data.data.role == 0) {
                            var info=wx.getStorageSync('info')
                            var info=wx.getStorageSync('card')
                            if (info) {
                                wx.redirectTo(
                                    {