摘要: 1 //此文件用来配置 assetsPath css-loader 和 vue-style-loader createNotifierCallback 2 'use strict' 3 const path = require('path') 4 const config = require('.. 阅读全文
posted @ 2020-12-02 16:32 思猿客 阅读(980) 评论(0) 推荐(0) 编辑
摘要: 1 // bulid.js是webpack的打包文件,通过配置package.json中的script来执行脚本。命令号npm run build即运行node build/build.js 2 'use strict' 3 require('./check-versions')() // 检查no 阅读全文
posted @ 2020-12-02 16:31 思猿客 阅读(1232) 评论(0) 推荐(0) 编辑
摘要: 1 'use strict' 2 module.exports = { 3 NODE_ENV: '"production"', 4 API_HOST:'"http://www.code-js.com:7001"', //线上环境 5 VERSION_CONTROL: false // yarn bu 阅读全文
posted @ 2020-12-02 16:29 思猿客 阅读(853) 评论(0) 推荐(0) 编辑
摘要: 1 'use strict' 2 const merge = require('webpack-merge') 3 const prodEnv = require('./prod.env') 4 5 //合并两个配置文件对象并生成一个新的配置文件,如果合并的过程中遇到冲突的属性,第二个参数的属性会覆 阅读全文
posted @ 2020-12-02 16:28 思猿客 阅读(1515) 评论(0) 推荐(0) 编辑
摘要: 1 //此文件是用来配置各个环境参数 2 3 'use strict' 4 // Template version: 1.3.1 5 // see http://vuejs-templates.github.io/webpack for documentation. 6 7 const path = 阅读全文
posted @ 2020-12-02 16:27 思猿客 阅读(736) 评论(0) 推荐(0) 编辑
摘要: 1.在 utils 中新建 dialog.js 文件 1 Vue.directive('dialogDrag', { 2 bind(el, binding, vnode, oldVnode) { 3 const dialogHeaderEl = el.querySelector('.el-dialo 阅读全文
posted @ 2020-11-05 15:07 思猿客 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 1、分页子组件 1 <template> 2 <div style="text-align: right; padding-right: 50px; padding-top: 15px"> 3 <el-button 4 size="mini" 5 @click="currentChange(curr 阅读全文
posted @ 2020-11-05 11:54 思猿客 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 1 const path = require('path'); 2 module.exports = { 3 // 基本路径 4 publicPath: process.env.NODE_ENV 'production' ? '' : './', 5 // 输出文件目录 6 outputDir: p 阅读全文
posted @ 2020-10-10 09:54 思猿客 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 1 export function unique(arr) { 2 var res = []; 3 var json = {}; 4 for (var i = 0; i < arr.length; i++) { 5 if (!json[arr[i]]) { 6 res.push(arr[i]); 7 阅读全文
posted @ 2020-10-10 09:51 思猿客 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 方法一: 1 export function idCardCheck(idNo) { 2 var regIdNo = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/; 3 if (!regIdNo.test(idNo)) { 4 return false; 5 阅读全文
posted @ 2020-10-10 09:50 思猿客 阅读(162) 评论(0) 推荐(0) 编辑