摘要: vue3项目中,如果不用ts这样使用是没问题的 const { proxy } = getCurrentInstance() 在ts中使用会报错:报错:...类型“ComponentInternalInstance | null” 我们在项目中一般会用到很多getCurrentInstance()方 阅读全文
posted @ 2021-07-14 17:58 前进中的蜗牛 阅读(2585) 评论(1) 推荐(1) 编辑
摘要: // 表单验证 export default { install: function(Vue) { // 空验证 Vue.config.globalProperties.check_null = function(txt) { return txt == '' ? true : /^[ ]+$/g. 阅读全文
posted @ 2021-07-14 16:01 前进中的蜗牛 阅读(730) 评论(0) 推荐(0) 编辑