-
Vue-cli to bottom load
how do you get the distance from the last li in a div to the bottom of the window? Send the request after the end
then repeat the previous step
...
-
After vue-cli npm run build, there is no error in the blank page.
Today, I encountered a strange problem with a project built with vue-cli. After running completely normal, npm run build, the page went blank without any error message (not caused by the assetsPublicPath setting, the page will report an error, and the ...
-
Problems encountered in the development of background management programs
problem: when adding a route dynamically, because all the data is obtained from the background, the component reference is a variable, but if you do the following, you will report an error, that is, you can t find the module. It seems that require cann...
-
Vue builds scaffolding
prompts sill extract source-map@0.5.7 to stop moving ...
-
Vue variable assignment
there is a problem with variable assignment when building a project using vue-cli. pass in a variable from outside component to render the menu. This variable gets from $.post, but using different assignment methods will make the result different: 12...
-
How to use the symbol reference method of iconfont in vue-cli
has been using vue-cli as a project recently, and the symbol reference recommended by the Ali icon library cannot be used directly in the project. Looking at the iconfont.js file, it is found that it is an anonymous immediate execution function
,expo...
-
Vue uses routing on-demand loading, so why is the packaged app.js still so large?
as shown in the figure, I used routing on-demand loading and generated a lot of .js files, but the app.js is still very large. It is even larger than non-demand loading
app.js ...
...
-
Why has requestURL not changed since proxyTable configuration?
proxyTable: {
levy : {
target: http: 118.31.112.11 ,
changeOrigin: true
}
},
var obj = {
username: ,
password:
}
this.$post( levy login index ,obj).then(res=>{
console.log(res);
})
Why doesn t r...
-
How to view projects built by vue-cli on your mobile phone
has replaced localhost with local IP, and IP can be opened normally on PC, but the phone cannot be converted into a QR code or directly opened by a copy address browser. Is there anything else that needs to be configured? ...
-
On the packing problem of iview-cli
problem description
items produced with iview-cli do not know what to do after packaging, and index_prod.html accesses blank
the environmental background of the problems and what methods you have tried
the earlier vue project package is different ...
-
It is found that there is a very strange problem with the iview carousel component. During the rotation, the @ click event written in the carousel will not be executed alternately.
<template>
<div class="boxdiv">
<Carousel v-model="value1" loop>
<CarouselItem class="car">
<div class="demo-carousel">
<div class="...
-
Vue-cli introduces sockjs-client to report error
vue-cli installation sockjs-client 1.0.0 introduces error
related codes
import SockJS from sockjs-client ;
introduction module
"dependencies": {
"fastclick": "^1.0.6",
"fs": "0.0.1-security&q...
-
Write limit input can only enter positive integer and decimal vue custom instructions, there are some problems, seek guidance to solve
only positive integers can be entered according to the keypress event, monitor the keyboard keyCode code, combined with the numeric regular expression to determine whether the typed keyCode is a number, if it is non-numeric, call the preventDefault e...
-
Traversing array objects in vue, judging according to conditions, and then deleting objects, error, why?
problem description
the environmental background of the problems and what methods you have tried
before, i=i-1 was not written in if. After the second cycle, the deletion prompt will break and stop running. after writing the i=i-1, you can continue...
-
Where is the process.env.BASE_URL set in vue-cli3?
when you create a template using cli3 (select vue-router), an environment variable of process.env.BASE_URL is used in router.js .
I looked up the documentation for vue-cli3 environment variables and patterns , and found that you can only use envir...
-
Vue-cli3 is used and typescript, is enabled. Please tell me how to declare the type to the value in data.
<script lang="ts">
import Vue from vue
import HelloWorld from @ components HelloWorld.vue
export default Vue.extend({
components: { HelloWorld },
data () {
return {
bb: 123
}
},
wat...
-
Vue-cli3.0 configuration baseUrl, etc.
In vue-cli3.0, the path configuration of the production environment is different from that of the development environment. is configured like 2.0,3.0 has
vue.config.js
module.exports = {
configureWebpack: config => {
if (process.env.NODE_E...
-
Vue-cli3 environment mode and variable undefine
defines a schema for proxy. The contents of .env.proxy.loacl are as follows,
NODE_ENV=development
VUE_APP_PROXY=proxy
execute command: vue-cli-service serve-- model proxy, process.env.VUE_APP_PROXY cannot be accessed in vue.config.js
chainWebpack: c...
-
The same project built by vue-cli is faster than the hot update of Mac system on windows system.
the first picture shows whether it takes 30s to run the project, and the second time you randomly change a js file. Press Save or compile for 30s.
...
-
How to configure postcss? for a project created by vue-cli3.0
problem description
I created a hello-world project using vue-cli version 3.0:
vue create hello-world
I found that it enabled the service by using vue serve .
now I want to join postcss, and find that the pkg.json generated by it has alread...