Skip to content
#

nuxtjs

nuxt logo

Nuxt.js is a framework for creating Vue.js applications. You can choose between Universal, Static Generated or Single Page applications.

Here are 1,673 public repositories matching this topic...

bootstrap-vue
wzxxzw
wzxxzw commented Jul 25, 2019

.英文不是很好,用的是nuxt.js,在刷新引入插件的页面会报window is not defined

// nuxt.config.js
plugins: [ {src: '~plugins/swiper',ssr: false} ],

//plugins文件夹下

import Vue from 'vue';
if (process.BROWSER_BUILD) {
const VueAwesomeSwiper = require('vue-awesome-swiper/dist/ssr');
Vue.use(VueAwesomeSwiper);
}

.vue文件
import { swiper, swiperSlide } from 'vue-awesome-swiper';
compone

Created by Sébastien Chopin & Alexandre Chopin

Released November 2016

Latest release 15 days ago

Repository
nuxt/nuxt.js
Website
nuxtjs.org
Wikipedia
Wikipedia

Related Topics

javascript spa ssr vue
You can’t perform that action at this time.