Skip to content
#

vue-resource

Here are 230 public repositories matching this topic...

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

TengFeiHao
TengFeiHao commented Apr 4, 2019

In NUXT project, highlight.js asynchronous change 'content'. In 'onEditorChange(){}' , 'this.content' repeated assignment. So dead cycle. The code and error are as follows:

[Vue warn]: You may have an infinite update loop in a component render function.
found in
---> <QuillEditor> at components/common/quillEditor.vue
       <Pages/detail/Index.vue> at pages/deta
vintprox
vintprox commented Apr 11, 2020

Vue.js version and component version

  • vue version 2.6.11
  • vue-codemirror version 4.0.6

Steps to reproduce

  1. Make editor with model set: <codemirror v-model="draft" />
  2. Initially set model: draft: 'TO WHATEVER TEXT'.
  3. Open editor, press Ctrl + Z.

What is Expected?

Nothing must happen.

What is actually happening?

Conten

Improve this page

Add a description, image, and links to the vue-resource topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the vue-resource topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.