|
本帖最后由 handsix 于 2021-5-13 00:03 编辑
这一段判断是错误码,也保存了token值得?
if (JSON.stringify(ret.error_code)==-2) {
$api.setStorage('token1', ret.data.LXYZOT);
// ow('guidepage', '../html/login.html')
}
这段改成下面那样试试
- if (JSON.stringify(ret.error_code)==-2) {
- //$api.setStorage('token1', ret.data.LXYZOT);
- ow('guidepage', '../html/login.html')
- }
复制代码 |
|