mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-28 14:08:13 +00:00
perf: Windows 10 以下不支持加密
This commit is contained in:
parent
f1d267e2b2
commit
11571c2045
9
resources/assets/js/store/actions.js
vendored
9
resources/assets/js/store/actions.js
vendored
@ -137,6 +137,15 @@ export default {
|
||||
], true)) {
|
||||
params.encrypt = true
|
||||
}
|
||||
if (params.encrypt) {
|
||||
const userAgent = window.navigator.userAgent;
|
||||
if (/Windows NT 5.1|Windows XP/.test(userAgent)
|
||||
|| userAgent.indexOf("Windows NT 6.0") !== -1
|
||||
|| userAgent.indexOf("Windows NT 6.1") !== -1
|
||||
|| userAgent.indexOf("Windows NT 6.2") !== -1) {
|
||||
params.encrypt = false // 是 Windows Xp, Vista, 7, 8 系统,不支持加密
|
||||
}
|
||||
}
|
||||
params.url = $A.apiUrl(params.url)
|
||||
params.data = $A.date2string(params.data)
|
||||
//
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user