vuejs2

Vue.js devtools not showing

穿精又带淫゛_ 提交于 2020-12-06 06:39:51
问题 Suddenly my Vue.js devtools stopped working. I had it in the chrome for like 2 years (since I started developing Vue.js). Now I can't see devtools in chrome. It happened yesterday just like that - I was using devtools for a while, then I was working on something else and after a while, I noticed something - devtools is away. Even though the extension is saying that devtools works: Why it is not "my" problem: I use it for 2 years with no problem, until now It was working in the morning, then

Add Bootstrap popover programmatically vue-full-calendar

久未见 提交于 2020-12-06 04:31:02
问题 My end goal is to add a Bootstrap 4 Popover to Full Calendar to display calendar event descriptions, since depending on the view, Full Calendar cuts off the Title/description. Since Full Calendar is generating everything based off of the events prop I pass to it, I haven't been able to figure out how to add a popover of any sort. (I could probably do it with jQuery, but I'm really trying to cut jQuery out of the project to make my build size smaller) There is great documentation here on

Add Bootstrap popover programmatically vue-full-calendar

空扰寡人 提交于 2020-12-06 04:30:47
问题 My end goal is to add a Bootstrap 4 Popover to Full Calendar to display calendar event descriptions, since depending on the view, Full Calendar cuts off the Title/description. Since Full Calendar is generating everything based off of the events prop I pass to it, I haven't been able to figure out how to add a popover of any sort. (I could probably do it with jQuery, but I'm really trying to cut jQuery out of the project to make my build size smaller) There is great documentation here on

Vue JS data binding not working for img src

ぐ巨炮叔叔 提交于 2020-12-05 12:10:39
问题 I am using vue 2 and vue-cli 3. I am trying to bind the src of an tag to a variable in data. Specifically I am doing the following: <img class="img-time-matters" :src="`./../assets/time-comparison-${locale}.png`"> export default { name: "home", components: {}, data() { return { locale: locale // 'en' }; } } The binding works Using Chrome developer tools and examining the network activity I see that the binding works: http://localhost:8080/assets/time-comparison-en.png However the resource is

Vue JS data binding not working for img src

不想你离开。 提交于 2020-12-05 12:04:35
问题 I am using vue 2 and vue-cli 3. I am trying to bind the src of an tag to a variable in data. Specifically I am doing the following: <img class="img-time-matters" :src="`./../assets/time-comparison-${locale}.png`"> export default { name: "home", components: {}, data() { return { locale: locale // 'en' }; } } The binding works Using Chrome developer tools and examining the network activity I see that the binding works: http://localhost:8080/assets/time-comparison-en.png However the resource is

Vue - input with multiple checkboxes

◇◆丶佛笑我妖孽 提交于 2020-12-05 09:29:12
问题 I'm rendering some checkboxes based on an array and using a data attribute as the v-model. I'm using Vue2. However, I end up having all checkboxes checked for some reason, when the value of the v-model equals 1 (I guess it treats it as a bool instead of a number). I tried v-model.number - without any luck. What am I doing wrong? My template: <div v-for="category in categories"> <input type="checkbox" v-model.number="item.category" :id="'category_' + category.id" :value="category.id" @change=

These dependencies were not found error in Vue.js

一个人想着一个人 提交于 2020-12-05 07:29:02
问题 After updating npm & node to their last versions, I get following errors when I try to run my vue project: These dependencies were not found: !!vue-style-loader!css-loader!../../../../../../../../../swlkagenda/1.2.0/build/node_modules/vue-loader/lib/style-rewriter?id=data-v-c906422a&scoped=true!wisaapp/login/login.css in /home/projects/wisaweb/trunk/app/modules/wisaapp/login/login.vue I get same errors for all of my vue files, which all look like as follows: Login.vue: <template src="wisaapp

These dependencies were not found error in Vue.js

醉酒当歌 提交于 2020-12-05 07:26:19
问题 After updating npm & node to their last versions, I get following errors when I try to run my vue project: These dependencies were not found: !!vue-style-loader!css-loader!../../../../../../../../../swlkagenda/1.2.0/build/node_modules/vue-loader/lib/style-rewriter?id=data-v-c906422a&scoped=true!wisaapp/login/login.css in /home/projects/wisaweb/trunk/app/modules/wisaapp/login/login.vue I get same errors for all of my vue files, which all look like as follows: Login.vue: <template src="wisaapp

How to get a 404 response in Vue Router

我是研究僧i 提交于 2020-12-04 17:37:25
问题 I already have a 404 handler in the SPA which works. The problem here is that Google for example links to old pages that no longer exist. While the user will see a custom 404 component, google will get, I assume, a 200 OK and continue to think the page is valid. { path: '*', name: 'not-found', component: NotFound // 404 } I have the server re-route to / and let vue handle the routing using History: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%

Vue is not a constructor

情到浓时终转凉″ 提交于 2020-12-01 09:13:40
问题 I using webpack , after build and run in chrome show this error,I don't know how to solve it. My code is very simple: { "devDependencies": { "babel-core": "^6.23.1", "babel-loader": "^6.3.2", "babel-plugin-transform-runtime": "^6.23.0", "babel-preset-es2015": "^6.22.0", "babel-runtime": "5", "css-loader": "^0.26.1", "html-webpack-plugin": "^2.28.0", "vue-hot-reload-api": "^2.0.9", "vue-html-loader": "^1.2.3", "vue-loader": "10.0.3", "vue-style-loader": "^2.0.0", "vue-template-compiler": "^2.1