扫描二维码时效fix
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
// pages/home/index.js
|
||||
import {
|
||||
getCurrentPageUrl
|
||||
} from './../../utils/util.js'
|
||||
const app = getApp();
|
||||
let s = '';
|
||||
let m = 0;
|
||||
@@ -206,6 +209,13 @@ Page({
|
||||
|
||||
//扫描二维码
|
||||
sacnQRCode() {
|
||||
if (!wx.getStorageSync('accessToken')) {
|
||||
wx.setStorageSync('history', getCurrentPageUrl());
|
||||
wx.redirectTo({
|
||||
url: '/pages/login/index',
|
||||
})
|
||||
return
|
||||
}
|
||||
wx.scanCode({
|
||||
success (res) {
|
||||
// wx.showToast({
|
||||
|
||||
Reference in New Issue
Block a user