mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 06:06:03 +01:00
Merge branch 'development' into development-publish
This commit is contained in:
@@ -91,6 +91,11 @@
|
||||
|
||||
},
|
||||
methods: {
|
||||
handleGoogleError() {
|
||||
const q = 'site:docs.pycom.io ' + this.q;
|
||||
const loc = encodeURI('https://bing.com?q=' + q)
|
||||
window.location = loc
|
||||
},
|
||||
navResult (url) {
|
||||
window.location = url;
|
||||
},
|
||||
@@ -110,10 +115,12 @@
|
||||
this.pageCount = Math.min(10, Math.trunc(res.data.searchInformation.totalResults/10) + 1)
|
||||
} else {
|
||||
this.results = null;
|
||||
this.handleGoogleError();
|
||||
}
|
||||
}, response => {
|
||||
this.results = null;
|
||||
this.error = { status: response.error, message: response.text }
|
||||
this.handleGoogleError();
|
||||
// ====
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user