A Vue.js project
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# run unit tests
npm run unit
# run all tests
npm test
For detailed explanation on how things work, checkout the guide and docs for vue-loader. ##更改用户权限管理模块 websanova model/src/lib/untils.js
function compare(one, two) {
var i, ii, key;
if (isObject(one) && isObject(two) ) {
for (key in one) {
if (compare(one[key], two[key])) {
return true;
}
}
return false;
}
one = toArray(one);
two = toArray(two);
if (one.constructor !== Array || two.constructor !== Array) {
return false;
}
for (i = 0, ii = one.length; i < ii; i++) {
if (two.indexOf(one[i]) >= 0) {
return true;
}
}
return false;
}
默认主题配置文件src/css/theme-default.scss
node_modules/.bin/et -c src/css/theme-default.css -o src/css/theme//从新编译主题
增加默认主题修改,Vue文件中css部分外部加载,提高代码可读性,回避less在webstrom中报错