Showing
1 changed file
with
6 additions
and
0 deletions
@@ -9,6 +9,12 @@ const qs = require('yoho-qs'); | @@ -9,6 +9,12 @@ const qs = require('yoho-qs'); | ||
9 | const tip = require('plugin/tip'); | 9 | const tip = require('plugin/tip'); |
10 | const yoho = require('./yoho-app'); | 10 | const yoho = require('./yoho-app'); |
11 | 11 | ||
12 | +// 如果不是 App,就把这个 cookie 清理掉,解决之前缓存错误的问题 20171020 | ||
13 | +const isApp = qs.app_version || /YohoBuy/i.test(navigator.userAgent || ''); | ||
14 | + | ||
15 | +if (!isApp) { | ||
16 | + cookie.remove('app_uid', 'app_version', 'app_client_type'); | ||
17 | +} | ||
12 | 18 | ||
13 | // App 的信息需要存下来 | 19 | // App 的信息需要存下来 |
14 | if (yoho.isApp && qs.uid && qs.app_version && qs.client_type) { | 20 | if (yoho.isApp && qs.uid && qs.app_version && qs.client_type) { |
-
Please register or login to post a comment