is there a html file in the vu project? do you want to fetch the data in vuex and put it in title? I can do it with localStorage, but the effect is not good
is there a html file in the vu project? do you want to fetch the data in vuex and put it in title? I can do it with localStorage, but the effect is not good
Yes, if it is a pure html page, remember to introduce various library files, and then instantiate a Vue object object to mount the template, you can take the value of $store.state in html.
<div id="component">
{{ msg }}
</div>
<script>
new Vue({
el: '-sharpcomponent',
data () {
return {
msg: $store.state.msg
}
})
</script>
$store.state.xxx
as long as you can get an instance of vuex's store, you can get any value in store
.vue chromedriver@2.37.0 ...
We know that on a server, we can install python, django, etc., and then run our django project. But why do you usually install virtualenv : first? yum --enablerepo=epel -y install python-virtualenv then install these software packages in virtualenv ...
I wrote a simple background with the flask framework, the project is written by pycharm, the virtual environment is automatically configured by pycharm when developing, and the project directory is as follows. app _ _ init__.py match _ _ in...
pip has been upgraded to version 10 in the global version; in the virtual environment created by manually entering Virtualenv venv, in the command window, the pip version is 10; when you create a new project using PyCharm, you create a virtual envir...
I have been using python3 + flask, before. I recently watched a project video of Django. There are all kinds of problems in configuring the environment when python2.7 uses django on win10. There are problems in installing mysql-python and ansible packag...
VBoxManage.exe: error: Failed to create the VirtualBox object! VBoxManage.exe: error: Code E_NOINTERFACE (0x80004002) - No such interface suppo rted (extended info not available) VBoxManage.exe: error: Most likely, the VirtualBox COM server is not runnin...
problem description vue and jquery project mixed projects are written in vue at first, and then written in jquery (mainly rendering). renders a result list in a vue project, using template.js rendering, the JS is a component that renders the result...
< H2 > Environment < H2 > Win7Python 3.6.5, < H2 > situation < H2 > there is import MySQLdb in the script that can be executed directly, but it is executed in the venv created with a failure prompt ModuleNotFoundError: No module named MySQLdb...
is that I have encountered a situation before. A person makes a product, but he doesn t have his own website, so all the articles about looking for this product online. Then what code was added to the URL of this site! How to use this plus code URL to...
router.beforeEach ((to, from, next) = > { if (to.matched.some (record = > record.meta.requiresAuth)) { if (!localStorage.token) { next({ path: login , query: { redirect: to.fullPath } }) } else { next() } } else { ...
that great god gives an answer. $route.matched returns gods and demons ...
is there any way to use element-ui or rem layout on the mobile phone? element-ui is not adaptive ....
error: rendering error: "TypeError: cannot read the undefined attribute replace " does this method need to be defined? how to define ...
is there any good polling method that does not use setInterval ...
settimeout write polling how to write the kind of long polling there are specific solutions to introduce ...
is there any document of the Great God meeting that can t be found in detail? if so, tell me whether I have to write this method at the back end after I have finished the previous paragraph ....
how can the longitude and latitude requested by Wechat s public platform geographic location interface be translated into an address accurate to the city I wrote it in vue. ...
Wechat longitude and latitude using Baidu map api to city address report cross-domain problem solved and reported to the 404 god to help solve let url = http: api.map.baidu.com geoc. GET request directly put the browser to execute the request...
cannot call translateCallback function to report an error < script type= "text javascript " > API GPS var x = 116.32715863448607; var y = 39.990912172420714; var ggPoint = new BMap.Point(x,y); var bm = new BMap.Map("allmap"); bm.ce...
use the Wechat interface to get the geographic location, and then what will pop up? what bank wants to get your geographic location? there are two options below whether you do not want him to pop up this box ...