|
@@ -95,7 +95,9 @@ export default {
|
|
|
mounted() {
|
|
|
if(this.search && !this.search.fromPath){
|
|
|
this.search.fromPath = window.history.length
|
|
|
- this.currentState = window.history.state.key
|
|
|
+ if(window.history.state){
|
|
|
+ this.currentState = window.history.state.key
|
|
|
+ }
|
|
|
var that = this
|
|
|
window.addEventListener('popstate', function(event) {
|
|
|
// console.log(event,that.currentState,event.state.key)
|
|
@@ -236,7 +238,9 @@ export default {
|
|
|
this.getContrast()
|
|
|
}
|
|
|
this.getPiZhuData()
|
|
|
- this.currentState = window.history.state.key
|
|
|
+ if(window.history.state){
|
|
|
+ this.currentState = window.history.state.key
|
|
|
+ }
|
|
|
this.$router.push(
|
|
|
{
|
|
|
path: '/patentDetails/' + this.patentNo,
|