Home > front end >  Google browser to vue will appear my Google browser will be this: Failed to load the resource: net:
Google browser to vue will appear my Google browser will be this: Failed to load the resource: net:

Time:09-17

The code is as follows:



<meta charset="UTF-8">
<meta name="viewport"
The content="width=device - width, user - scalable=no, initial - scale=1.0, the maximum - scale=1.0, minimum - scale=1.0" & gt;
<meta HTTP - equiv="X - UA - Compatible" content="ie=edge" & gt;
Document
<script SRC="https://cdn.jsdelivr.net/npm/vue/dist/vue.js" & gt; </script>

<body>


<script>
Var=new vm Vue ({
El: '# app,
Data: {
MSC: 'steady development, don't wave ~ ~',
IntervalId: null
},
Methods: {
Gogogo () {
If (this. IntervalId!=null) {
Return
}
Enclosing intervalId=setInterval (()=& gt; {
The console. The log (enclosing MSC)

Var start=this. MSC. The substring (0, 1)
Var end=this. MSC. The substring (1)
This. MSC=end + start
}, 400)
},
Stop () {
ClearInterval (enclosing intervalId)
Enclosing intervalId=null;
}
}
})
</script>



I Google browser will appear this: Failed to load the resource: net: : ERR_FILE_NOT_FOUND

I've tried other browsers, find a few friends test, is no problem, I don't know why I can have this, how can I solve ah, each big!

CodePudding user response:

In webpack. Base. Conf.
in js
PublicPath: process. The env. NODE_ENV==='production'

? '/' + config. Build. AssetsPublicPath
: '/' + config. Dev. AssetsPublicPath

Refer to the address: https://blog.csdn.net/huang_jin_yi/article/details/78921763

CodePudding user response:

reference 1/f, xiaoxiang dream response:
in webpack.
in the base. Conf. Js
PublicPath: process. The env. NODE_ENV==='production'

? '/' + config. Build. AssetsPublicPath
: '/' + config. Dev. AssetsPublicPath

Refer to the address: https://blog.csdn.net/huang_jin_yi/article/details/78921763


Add or no ah ~ how to do

CodePudding user response:

refer to the second floor weixin_45444349 response:
Quote: reference 1/f, xiaoxiang dream response:

In webpack. Base. Conf.
in js
PublicPath: process. The env. NODE_ENV==='production'

? '/' + config. Build. AssetsPublicPath
: '/' + config. Dev. AssetsPublicPath

Refer to the address: https://blog.csdn.net/huang_jin_yi/article/details/78921763


Add or no ah ~ how do


There are a few ideas, can try:
1. Set up an effective local development server certificate, and add the certificate trust
2. Change my network proxy, then refresh the Chrome
3. Check the system time, consistency and real time

CodePudding user response:

Problem solved, encountered the same problem
  • Related