|
@@ -148,14 +148,18 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
- showAppDetails(event) {
|
|
|
+ async showAppDetails(event) {
|
|
|
if (event.currentTarget.tagName === 'INPUT' || event.currentTarget.tagName === 'A') {
|
|
|
return
|
|
|
}
|
|
|
- this.$router.push({
|
|
|
- name: 'apps-details',
|
|
|
- params: { category: this.category, id: this.app.id }
|
|
|
- })
|
|
|
+ try {
|
|
|
+ await this.$router.push({
|
|
|
+ name: 'apps-details',
|
|
|
+ params: { category: this.category, id: this.app.id }
|
|
|
+ })
|
|
|
+ } catch (e) {
|
|
|
+ // we already view this app
|
|
|
+ }
|
|
|
},
|
|
|
prefix(prefix, content) {
|
|
|
return prefix + '_' + content
|