mirror of
https://github.com/zuiidea/antd-admin
synced 2026-11-20 06:45:23 +00:00
23 lines
445 B
JavaScript
23 lines
445 B
JavaScript
import config from './config'
|
|
import menu from './menu'
|
|
import request from './request'
|
|
require('./mock.js');
|
|
|
|
// 连字符转驼峰
|
|
String.prototype.hyphenToHump = function () {
|
|
return this.replace(/-(\w)/g, function () {
|
|
return arguments[1].toUpperCase()
|
|
})
|
|
}
|
|
|
|
// 驼峰转连字符
|
|
String.prototype.humpToHyphen = function () {
|
|
return this.replace(/([A-Z])/g,"-$1").toLowerCase()
|
|
}
|
|
|
|
module.exports = {
|
|
config,
|
|
menu,
|
|
request
|
|
}
|