07 2021 档案

摘要:vscode保存文件时会自动格式化,下面更改方法: 打开配置文件setting.json 添加: "editor.codeActionsOnSave": { "source.fixAll.eslint": false }, 阅读全文
posted @ 2021-07-15 10:24 前进中的蜗牛 阅读(3816) 评论(1) 推荐(0) 编辑
摘要:一直报错:Delete `··` 解决方法: ctrl+shift+p 打开首选项json 添加:"prettier.endOfLine": "crlf", 报错:warning Delete `␍` 解决方法: vscode下方有一个CRLF 点击,在弹出窗口选择LF 重新格式化即可 阅读全文
posted @ 2021-07-15 10:00 前进中的蜗牛 阅读(674) 评论(0) 推荐(0) 编辑
摘要:vue3项目中,如果不用ts这样使用是没问题的 const { proxy } = getCurrentInstance() 在ts中使用会报错:报错:...类型“ComponentInternalInstance | null” 我们在项目中一般会用到很多getCurrentInstance()方 阅读全文
posted @ 2021-07-14 17:58 前进中的蜗牛 阅读(2615) 评论(1) 推荐(1) 编辑
摘要:// 表单验证 export default { install: function(Vue) { // 空验证 Vue.config.globalProperties.check_null = function(txt) { return txt == '' ? true : /^[ ]+$/g. 阅读全文
posted @ 2021-07-14 16:01 前进中的蜗牛 阅读(757) 评论(0) 推荐(0) 编辑