diff --git a/components/side-nav.vue b/components/side-nav.vue index fed53e3..2cbe848 100644 --- a/components/side-nav.vue +++ b/components/side-nav.vue @@ -9,7 +9,7 @@
-
+
返回顶部

{{ $t('common.TOP') }}

@@ -47,6 +47,11 @@ export default { } ] } + }, + methods:{ + goTop() { + window.scrollTo({ top: 0, behavior: 'smooth' }); + } } } diff --git a/nuxt.config.js b/nuxt.config.js index f3c7db6..b4813d8 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -32,6 +32,7 @@ export default { ], script: [ // { type:"text/javascript" , src: 'https://api.map.baidu.com/api?v=1.0&type=webgl&ak=otBoKESzaUj1nGjWiehnCP3AUyRKgikx'} + // {type:"text/javascript" , src: 'http://101.245.103.204/embed.min.js',id:"BC985VI4DnedSaIQ",defer:true} ] }, env: {