解锁屏幕打开上次页签

This commit is contained in:
RuoYi
2021-03-27 11:12:29 +08:00
parent 04e7a314f8
commit 67b3a4f7e2
4 changed files with 10 additions and 1 deletions

View File

@ -321,11 +321,15 @@ function applyPath(url) {
}
$(function() {
var lockPath = storage.get('lockPath');
if($.common.equals("history", mode) && window.performance.navigation.type == 1) {
var url = storage.get('publicPath');
if ($.common.isNotEmpty(url)) {
applyPath(url);
}
} else if($.common.isNotEmpty(lockPath)) {
applyPath(lockPath);
storage.remove('lockPath');
} else {
var hash = location.hash;
if ($.common.isNotEmpty(hash)) {