![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
当代词圣李白
这个作者很懒,什么都没留下…
展开
-
关于vue3打包后 配置nginx 404 的一些探索
关于这个问题官网已经给出答案了。官网:https://router.vuejs.org/zh/guide/essentials/history-mode.html那下面简单说下我的探索在官网的代码中其中的 $uri 是什么呢??我查了一些nginx的文档说明$uri 表示当前请求的URI不带任何参数而 try_files 意思是try_files首先会去 $root 找有没有对应的文件或者api, 如果没有就会 fall back 到 try_files 的最后一个选项 /index.html原创 2022-06-01 17:03:08 · 567 阅读 · 0 评论 -
vue-cli项目,页面刷新404问题原因之一
这个问题可能存在的原因是vue.config.js 在 如下配置module.exports = { devServer: { port: 5012, proxy: { "/": { // 测试网 target: "http://jinfu.baohan.com:8080/", ws: true, changeOrigin: true, }, }, disableHostCheck: true, }, productionSourceMa原创 2022-05-23 17:10:18 · 579 阅读 · 0 评论 -
nuxt.js 刷新页面报错 ( Failed to execute ‘appendChild‘ on ‘Node‘: This node type does not support this )
把页面上的的 v-if 都改成 v-show 试试说明说一下:可能出现找个问题的情况很多,这是其一,仅作参考原创 2021-11-22 21:31:21 · 1535 阅读 · 1 评论 -
vue3 TypeError: Cannot read property ‘parentNode‘ of null
添加一个 404 路由试试 { path: "/:pathMatch(.*)*", name: "notFound", component: notFound, // 引入 组件 },原创 2021-03-31 17:32:39 · 9541 阅读 · 2 评论 -
vue watch监听不到 对象,
原因之一,以上是错误写法,不能在子组件里被监听到。正确写法原创 2021-02-25 10:50:06 · 88 阅读 · 0 评论 -
vue/test-utils window 对象添加属性 方法
在jest的全局文件(假设是setup.js)文件中把这个对象进入mock即可首先配置全局文件// jest.config.jsmodule.exports = { setupFiles: ['<rootDir>/tests/unit/setup.js'], // 指定setup的位置 //...其他配置 }}// <rootDir>/tests/unit/setup.js// mock全局对象appInfowindow.appInfo = { n转载 2021-02-07 10:19:01 · 811 阅读 · 0 评论 -
vue jest 全局方法
原文地址转载 2021-02-07 08:56:30 · 346 阅读 · 0 评论 -
vue3 封装自定义组件v-model
首先要注意 vue3中 v-model 默认绑定的变量名变了,从原理的 value 改成了 modelValue,如果要改变变量的值,要执行一个事件 this.$emit("update:modelValue", value);<template> <div class="inline"> <input :type="password ? 'password' : 'text'" ref="input" @input="handleInput" @blur=原创 2021-01-14 15:45:34 · 3364 阅读 · 0 评论 -
element-ui 多表头 排序错乱
在多级表头里,子级表头会错误,原创 2020-09-17 17:52:20 · 683 阅读 · 0 评论 -
Invalid prop: type check failed for prop “value“. Expected String, Number
原因是input 绑定的值是 数组,正确的取值范围 数字,字符串原创 2020-08-04 21:33:10 · 8366 阅读 · 0 评论 -
vue 中央事件
this.root.root.root.emit(‘bbbb’,{}) // 发送事件this..root..root..root.on(‘bbbb’,()=>{}) // 接收事件原创 2019-10-24 17:30:39 · 132 阅读 · 0 评论 -
vue-cli3 多页面 打包后 空白
在 vue.config.js 里添加 lintOnSave: false,原创 2019-10-10 17:56:01 · 1231 阅读 · 0 评论 -
vue-cli 3 自定义配置
传送门: https://www.cnblogs.com/lanshengzhong/p/10386986.html转载 2019-09-20 18:13:14 · 379 阅读 · 0 评论 -
import 'element-ui/lib/theme-chalk/index.css 报错
在 node_modules\element-ui\lib\theme-chalk 下新建一个 index.js 文件代码如下:import ‘./index.css’;export default {}引入 import ‘element-ui/lib/theme-chalk/index.js’原创 2019-08-07 14:15:51 · 7795 阅读 · 0 评论 -
var content = require("!!../../../css-loader/index.js??ref--7-1!../../../postcss-loader/lib/index.j
讲道理可以原创 2019-08-01 14:39:14 · 2834 阅读 · 0 评论 -
dev shell 显示 vue 运行成功 浏览器却访问失败
#vue-cli 构建的项目先检查 config/index.js 下的 assetsPublicPath 属性,本地 dev 应该是 assetsPublicPath:’/’原创 2019-06-23 11:17:57 · 663 阅读 · 0 评论 -
组件呈现函数中可能有无限更新循环 vue
是因为吧 方法写在了 mounted 里 (原因之一)原创 2019-06-23 11:13:32 · 945 阅读 · 0 评论