Vue
rich@cai
这个作者很懒,什么都没留下…
展开
-
vue测试环境通过nginx处理跨越
通过nginx的proxy_pass来处理跨越问题 server { listen 8168; server_name localhost; location / { root /opt/apache-tomcat-8.5.8/hidisp.iledsysCloudView/webapps/ROOT; index index.html; try_files $ur原创 2021-08-20 09:35:33 · 105 阅读 · 0 评论 -
vue路由history模式刷新404问题解决方案
1.使用nginx的方法 server { listen 8168; server_name localhost; location / { root /opt/apache-tomcat-8.5.8/XXX/webapps/ROOT; index index.html; try_files $uri $uri/ @router; index原创 2021-08-19 15:01:08 · 356 阅读 · 0 评论 -
Redirected when going from “/index“ to “/xx“via a navigation guard
错误:vue-router.esm.js?fe87:2008 Uncaught (in promise) Error: Redirected when going from "/index" to "/userhome" via a navigation guard. at createRouterError (vue-router.esm.js?fe87:2008) at createNavigationRedirectedError (vue-router.esm.js?fe87:19原创 2021-07-09 21:57:56 · 1669 阅读 · 0 评论 -
webpack-dev-server‘ 不是内部或外部命令
npm run [email protected] dev D:\work\uni\fs\fengshui_vuewebpack-dev-server --inline --progress --config build/webpack.dev.conf.js‘webpack-dev-server’ 不是内部或外部命令,也不是可运行的程序或批处理文件。npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! [email protected] dev: web原创 2021-04-27 14:20:42 · 5929 阅读 · 0 评论 -
idea创建vue+element-ui
1.安装vue插件2.创建vue项目,选择Javascript 选择Vue.js项目名称和项目路径添加 element-ui在 main.js 中添加import ElementUI from ‘element-ui’;import ‘element-ui/lib/theme-chalk/index.css’;Vue.use(ElementUI)运行项目运行起来:App running at:Local: http://localhost:8080/Network:原创 2021-03-11 11:42:12 · 1386 阅读 · 0 评论 -
Note that HTML attributes are case-insensitive and camelCased props need to use their kebab-case
加粗样式Prop 的大小写<div id="prop-demo"> <p>Prop 的大小写 (camelCase vs kebab-case)</p> <prop-blog postTitle="hi"></prop-blog> </div>Vue.component('prop-b...原创 2020-04-30 15:26:11 · 228 阅读 · 0 评论 -
Vue 局部注册demo
demo: <div id="part-component"> <component-a></component-a> <componentb></componentb> </div>script:var ComponentA = { data: funct...原创 2020-04-30 14:58:02 · 139 阅读 · 0 评论 -
Vue动态组件demo
<div id="dynamic-component-demo" class="demo"> <button v-for="(tab,index) in tabs" v-bind:key="index" v-bind:class="['tab-button',{acitve:currentTab === tab}]" ...原创 2020-04-30 13:51:25 · 388 阅读 · 0 评论 -
Property or method "dyname" is not defined on the instance but referenced during render. Make sure t
sse-hooks.js:1 [Vue warn]: Property or method “dynamicslotname” is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for...原创 2020-04-29 17:36:34 · 5890 阅读 · 0 评论 -
To avoid scope ambiguity, the default slot should also use <template> syntax when there are other na
注意默认插槽的缩写语法不能和具名插槽混用,因为它会导致作用域不明确: {{ slotProps.user.firstName }} slotProps is NOT available here 只要出现多个插槽,请始终为所有的插槽使用完整的基于 的语法: {{ slotProps.user.firstName }} ... ...原创 2020-04-29 13:43:37 · 650 阅读 · 0 评论