摘要:
// .eslintrc.js module.exports = { root: true, env: { node: true, }, extends: [ "plugin:vue/essential", "eslint:recommended", "plugin:prettier/recomme 阅读全文
摘要:
<el-button type="" circle size="mini" icon="el-icon-share" id="copyBtn" @click="shareTaskDetail" ></el-button> import ClipboardJS from "clipboard"; // 阅读全文
摘要:
一行代码简单处理时间格式 new Date().toLocaleString() new Date().toLocaleString() '2022/7/20 09:47:14' new Date().toLocaleString().split(" ")[0] '2022/7/20' new Da 阅读全文
摘要:
export const deepClone = data => { var type = getObjType(data); var obj; if (type 'array') obj = []; else if (type 'object') obj = {}; else return dat 阅读全文
摘要:
devServer: { // host: '0.0.0.0', port: 8080, open: true, proxy: { // "/test": { // target: `http://a/b`, //代理地址 // changeOrigin: true, //是否修改为后端host,h 阅读全文
摘要:
//index.js const componentsContext = require.context('./', true, /\.vue$/) let arr = {} componentsContext.keys().forEach(file_name => { // 获取文件中的 defa 阅读全文
摘要:
main.js // 全局组件自动注册 import '@/components/autoRegister' autoRegister.js /** * 全局组件自动注册 * * 全局组件各个组件按文件夹区分,文件夹名称与组件名无关联,但建议与组件名保持一致 * 文件夹内至少保留一个文件名为 ind 阅读全文
摘要:
1. 本地运行报错,解决方法: 2.线上打包运行不影响,不报错,流水线自动打包也不影响 阅读全文
摘要:
// 星期格式转换 0-6:周日到周六 function weekFormat(e, prefix = "周") { switch (e) { case 0: return prefix + "日" break; case 1: return prefix + "一" break; case 2: 阅读全文
摘要:
// 判断任务状态禁用按钮 // 子级得递归一下 let taskListDeepCopy = JSON.parse(JSON.stringify(this.taskList)); this.taskList = this.arrayRecursion(taskListDeepCopy); // 递 阅读全文