- 博客(4)
- 收藏
- 关注
原创 如果遇到提示错误 reactivity.esm-bundler.js?a1e9:337 Set operation on key “default“ failed: target is readonl
async-validator控制台警告 解决方案如下: 1.找到util.js node_modules -> async-validator -> es -> util.js 将console.warn(type, errors)注释 2.如果没找到util.js node_modules -> async-validator -> dist-node 与 dist-web -> index.js 将console.warn(type, errors)注释 ...
2021-04-28 10:57:33
3682
2
原创 vue3 通过ref来实现文件与文件之间的数据互通效果(例如vue2的VueX)
只是记录自己一些知道的只是可能理解有无,大家见谅也只是给自己看看罢了… 创建一个js文件 引入ref import {ref} from 'vue'; 则我们可以使用vue3的ref,然后我们创建一个变量给他export出去即可 例如: export const numbers = ref(0); 然后在我们.vue的文件引入这个numbers 例如 index.vue import {numbers} from './index.js' 然后我们通过setup()把numbers return出去
2021-04-26 12:01:08
491
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅