SmartPhoto icon indicating copy to clipboard operation
SmartPhoto copied to clipboard

url参数被你的hash整没了~~

Open xiedandan opened this issue 7 years ago • 3 comments

本来url是 detail.html?id=1 qq 20171229171035

然后浏览图片后,url就被hash了,?id=1就被删除了, qq 20171229171046

相册点击关闭之后,URL就变成 detail.html qq 20171229171055

我的参数没了

xiedandan avatar Dec 29 '17 09:12 xiedandan

解决办法,注释1939行 this._setHash(hash); //this._setHash(hash); qq 20171229185818

xiedandan avatar Dec 29 '17 10:12 xiedandan

Hi @xiedandan You can disable the hash feature via the following code

new SmartPhoto('.js-photo', {
  useHistoryApi: false
});

steelydylan avatar Dec 30 '17 16:12 steelydylan

wahaha

ccwq avatar Mar 20 '18 09:03 ccwq

Closing due to comments above https://github.com/appleple/SmartPhoto/issues/37#issuecomment-354555229

uidev1116 avatar Jan 11 '23 06:01 uidev1116